Skip to content

Commit d31934f

Browse files
committed
refactor: replace github_custom_tracking_id with github_issue_number
1 parent 1093e33 commit d31934f

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,9 @@ inputs:
9696
required: false
9797
default: '${{ github.event.pull_request.number }}'
9898
github_issue_number:
99-
description: 'The Issue number the CLI is operating on. Defaults to the event payload.'
99+
description: 'The Issue number (or comma-separated list of issue numbers) the CLI is operating on. Defaults to the event payload.'
100100
required: false
101101
default: '${{ github.event.issue.number }}'
102-
github_custom_tracking_id:
103-
description: 'A custom tracking ID (e.g. comma-separated list of issue IDs for scheduled batches).'
104-
required: false
105102

106103
outputs:
107104
summary:
@@ -246,7 +243,6 @@ runs:
246243
GH_WORKFLOW_NAME: '${{ steps.sanitize_workflow_name.outputs.gh_workflow_name }}'
247244
GH_PR_NUMBER: '${{ inputs.github_pr_number }}'
248245
GH_ISSUE_NUMBER: '${{ inputs.github_issue_number }}'
249-
GH_CUSTOM_TRACKING_ID: '${{ inputs.github_custom_tracking_id }}'
250246
shell: 'bash'
251247
run: |-
252248
set -euo pipefail
@@ -432,7 +428,6 @@ runs:
432428
GH_WORKFLOW_NAME: '${{ steps.sanitize_workflow_name.outputs.gh_workflow_name }}'
433429
GH_PR_NUMBER: '${{ inputs.github_pr_number }}'
434430
GH_ISSUE_NUMBER: '${{ inputs.github_issue_number }}'
435-
GH_CUSTOM_TRACKING_ID: '${{ inputs.github_custom_tracking_id }}'
436431

437432
- name: 'Upload Gemini CLI outputs'
438433
if: |-
@@ -461,7 +456,6 @@ runs:
461456
-e "s#GITHUB_RUN_ID_PLACEHOLDER#${GITHUB_RUN_ID}#g" \
462457
-e "s#GITHUB_PR_NUMBER_PLACEHOLDER#${GITHUB_PR_NUMBER}#g" \
463458
-e "s#GITHUB_ISSUE_NUMBER_PLACEHOLDER#${GITHUB_ISSUE_NUMBER}#g" \
464-
-e "s#GITHUB_CUSTOM_TRACKING_ID_PLACEHOLDER#${GITHUB_CUSTOM_TRACKING_ID}#g" \
465459
"${GITHUB_ACTION_PATH}/scripts/collector-gcp.yaml.template" > ".gemini/collector-gcp.yaml"
466460
467461
# Ensure credentials file has the right permissions
@@ -514,7 +508,6 @@ runs:
514508
GITHUB_RUN_ID: '${{ github.run_id }}'
515509
GITHUB_PR_NUMBER: '${{ inputs.github_pr_number }}'
516510
GITHUB_ISSUE_NUMBER: '${{ inputs.github_issue_number }}'
517-
GITHUB_CUSTOM_TRACKING_ID: '${{ inputs.github_custom_tracking_id }}'
518511

519512
branding:
520513
icon: 'terminal'

examples/workflows/issue-triage/gemini-scheduled-triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ jobs:
113113
upload_artifacts: '${{ vars.UPLOAD_ARTIFACTS }}'
114114
workflow_name: 'gemini-scheduled-triage'
115115
# Overriding default telemetry inputs because scheduled workflows lack an event payload
116-
# We pass the dynamically generated list of batch issues to the custom tracking ID field
117-
github_custom_tracking_id: '${{ steps.find_issues.outputs.issue_numbers }}'
116+
# We pass the dynamically generated list of batch issues to the issue number field
117+
github_issue_number: '${{ steps.find_issues.outputs.issue_numbers }}'
118118
settings: |-
119119
{
120120
"model": {

scripts/collector-gcp.yaml.template

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ processors:
1818
- key: 'github.issue.number'
1919
value: 'GITHUB_ISSUE_NUMBER_PLACEHOLDER'
2020
action: 'upsert'
21-
- key: 'github.custom_tracking.id'
22-
value: 'GITHUB_CUSTOM_TRACKING_ID_PLACEHOLDER'
23-
action: 'upsert'
2421
batch:
2522
send_batch_size: 100
2623
timeout: '10s'

0 commit comments

Comments
 (0)