From 9da55331df5ce66d7b676a3a134e3abe13b7d00c Mon Sep 17 00:00:00 2001 From: Lee James <40045512+leehagoodjames@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:20:03 -0400 Subject: [PATCH 1/3] feat(telemetry): Specify gemini-SURFACE (#156) Fixes #155 --- .github/workflows/gemini-cli.yml | 1 + .github/workflows/gemini-issue-automated-triage.yml | 1 + .github/workflows/gemini-issue-scheduled-triage.yml | 1 + .github/workflows/gemini-pr-review.yml | 1 + examples/workflows/gemini-cli/gemini-cli.yml | 1 + .../workflows/issue-triage/gemini-issue-automated-triage.yml | 1 + .../workflows/issue-triage/gemini-issue-scheduled-triage.yml | 1 + examples/workflows/pr-review/gemini-pr-review.yml | 1 + 8 files changed, 8 insertions(+) diff --git a/.github/workflows/gemini-cli.yml b/.github/workflows/gemini-cli.yml index 23179d0f..59f1f187 100644 --- a/.github/workflows/gemini-cli.yml +++ b/.github/workflows/gemini-cli.yml @@ -195,6 +195,7 @@ jobs: USER_REQUEST: '${{ steps.get_context.outputs.user_request }}' ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}' IS_PR: '${{ steps.get_context.outputs.is_pr }}' + SURFACE: 'GITHUB_ACTION' with: gemini_api_key: '${{ secrets.GEMINI_API_KEY }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/.github/workflows/gemini-issue-automated-triage.yml b/.github/workflows/gemini-issue-automated-triage.yml index fbef1435..55bf2f37 100644 --- a/.github/workflows/gemini-issue-automated-triage.yml +++ b/.github/workflows/gemini-issue-automated-triage.yml @@ -64,6 +64,7 @@ jobs: ISSUE_BODY: '${{ github.event.issue.body }}' ISSUE_NUMBER: '${{ github.event.issue.number }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/.github/workflows/gemini-issue-scheduled-triage.yml b/.github/workflows/gemini-issue-scheduled-triage.yml index 5cb44ffd..83e2040c 100644 --- a/.github/workflows/gemini-issue-scheduled-triage.yml +++ b/.github/workflows/gemini-issue-scheduled-triage.yml @@ -72,6 +72,7 @@ jobs: GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}' ISSUES_TO_TRIAGE: '${{ steps.find_issues.outputs.issues_to_triage }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/.github/workflows/gemini-pr-review.yml b/.github/workflows/gemini-pr-review.yml index 0d3ab42a..10fa8bcb 100644 --- a/.github/workflows/gemini-pr-review.yml +++ b/.github/workflows/gemini-pr-review.yml @@ -150,6 +150,7 @@ jobs: CHANGED_FILES: '${{ steps.get_pr.outputs.changed_files || steps.get_pr_comment.outputs.changed_files }}' ADDITIONAL_INSTRUCTIONS: '${{ steps.get_pr.outputs.additional_instructions || steps.get_pr_comment.outputs.additional_instructions }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/examples/workflows/gemini-cli/gemini-cli.yml b/examples/workflows/gemini-cli/gemini-cli.yml index 3fbaedc7..9473c411 100644 --- a/examples/workflows/gemini-cli/gemini-cli.yml +++ b/examples/workflows/gemini-cli/gemini-cli.yml @@ -195,6 +195,7 @@ jobs: USER_REQUEST: '${{ steps.get_context.outputs.user_request }}' ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}' IS_PR: '${{ steps.get_context.outputs.is_pr }}' + SURFACE: 'GITHUB_ACTION' with: gemini_api_key: '${{ secrets.GEMINI_API_KEY }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/examples/workflows/issue-triage/gemini-issue-automated-triage.yml b/examples/workflows/issue-triage/gemini-issue-automated-triage.yml index 8e2ed690..fff953ab 100644 --- a/examples/workflows/issue-triage/gemini-issue-automated-triage.yml +++ b/examples/workflows/issue-triage/gemini-issue-automated-triage.yml @@ -64,6 +64,7 @@ jobs: ISSUE_BODY: '${{ github.event.issue.body }}' ISSUE_NUMBER: '${{ github.event.issue.number }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/examples/workflows/issue-triage/gemini-issue-scheduled-triage.yml b/examples/workflows/issue-triage/gemini-issue-scheduled-triage.yml index f4420597..52601ae4 100644 --- a/examples/workflows/issue-triage/gemini-issue-scheduled-triage.yml +++ b/examples/workflows/issue-triage/gemini-issue-scheduled-triage.yml @@ -72,6 +72,7 @@ jobs: GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}' ISSUES_TO_TRIAGE: '${{ steps.find_issues.outputs.issues_to_triage }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' diff --git a/examples/workflows/pr-review/gemini-pr-review.yml b/examples/workflows/pr-review/gemini-pr-review.yml index 297c4572..c523619b 100644 --- a/examples/workflows/pr-review/gemini-pr-review.yml +++ b/examples/workflows/pr-review/gemini-pr-review.yml @@ -150,6 +150,7 @@ jobs: CHANGED_FILES: '${{ steps.get_pr.outputs.changed_files || steps.get_pr_comment.outputs.changed_files }}' ADDITIONAL_INSTRUCTIONS: '${{ steps.get_pr.outputs.additional_instructions || steps.get_pr_comment.outputs.additional_instructions }}' REPOSITORY: '${{ github.repository }}' + SURFACE: 'GITHUB_ACTION' with: gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' From 19c5c12b93406eb6486c7bb4625d8a47def16b1e Mon Sep 17 00:00:00 2001 From: Lee James <40045512+leehagoodjames@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:20:40 -0400 Subject: [PATCH 2/3] feat(triage): reduce label cardinality (#154) Fixes #152 TL;DR: Just add `priority` and `kind` labels --- .github/workflows/gemini-issue-automated-triage.yml | 6 +++--- .../issue-triage/gemini-issue-automated-triage.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gemini-issue-automated-triage.yml b/.github/workflows/gemini-issue-automated-triage.yml index 55bf2f37..2012f49f 100644 --- a/.github/workflows/gemini-issue-automated-triage.yml +++ b/.github/workflows/gemini-issue-automated-triage.yml @@ -100,9 +100,9 @@ jobs: 1. Run: `gh label list` to get all available labels. 2. Review the issue title and body provided in the environment variables: "${ISSUE_TITLE}" and "${ISSUE_BODY}". - 3. Select the most relevant labels from the existing labels. If - available, set labels that follow the `kind/*`, `area/*`, and - `priority/*` patterns. + 3. Classify issues by their kind (bug, enhancement, documentation, + cleanup, etc) and their priority (p0, p1, p2, p3). Set the + labels accoridng to the format `kind/*` and `priority/*` patterns. 4. Apply the selected labels to this issue using: `gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"` 5. If the "status/needs-triage" label is present, remove it using: diff --git a/examples/workflows/issue-triage/gemini-issue-automated-triage.yml b/examples/workflows/issue-triage/gemini-issue-automated-triage.yml index fff953ab..9d851188 100644 --- a/examples/workflows/issue-triage/gemini-issue-automated-triage.yml +++ b/examples/workflows/issue-triage/gemini-issue-automated-triage.yml @@ -100,9 +100,9 @@ jobs: 1. Run: `gh label list` to get all available labels. 2. Review the issue title and body provided in the environment variables: "${ISSUE_TITLE}" and "${ISSUE_BODY}". - 3. Select the most relevant labels from the existing labels. If - available, set labels that follow the `kind/*`, `area/*`, and - `priority/*` patterns. + 3. Classify issues by their kind (bug, enhancement, documentation, + cleanup, etc) and their priority (p0, p1, p2, p3). Set the + labels accoridng to the format `kind/*` and `priority/*` patterns. 4. Apply the selected labels to this issue using: `gh issue edit "${ISSUE_NUMBER}" --add-label "label1,label2"` 5. If the "status/needs-triage" label is present, remove it using: From e061df3d60a224aed843cdac838189d1f6bff576 Mon Sep 17 00:00:00 2001 From: Google GitHub Actions Bot <72759630+google-github-actions-bot@users.noreply.github.com> Date: Fri, 8 Aug 2025 15:07:36 -0400 Subject: [PATCH 3/3] Release: v0.1.9 (#157) ## What's Changed * feat(telemetry): Specify gemini-SURFACE by @leehagoodjames in https://github.com/google-github-actions/run-gemini-cli/pull/156 * feat(triage): reduce label cardinality by @leehagoodjames in https://github.com/google-github-actions/run-gemini-cli/pull/154 **Full Changelog**: https://github.com/google-github-actions/run-gemini-cli/compare/v0.1.8...v0.1.9 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8161b4e8..d9974c1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "run-gemini-cli", - "version": "0.1.8", + "version": "0.1.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "run-gemini-cli", - "version": "0.1.8", + "version": "0.1.9", "license": "Apache-2.0", "devDependencies": { "@google-github-actions/actions-utils": "^0.8.8" diff --git a/package.json b/package.json index 71a77524..36bd57af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "run-gemini-cli", - "version": "0.1.8", + "version": "0.1.9", "description": "This works with our versioning tools, this is NOT an NPM repo", "scripts": { "build": "echo \"No build required for composite action\"",