From 4225b07ed356b5fc0a70c0620b42cbef297d722d Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Mon, 29 Jun 2026 07:57:43 -0700 Subject: [PATCH] fix: Make dry_run configurable for ADK Java PR triage, spam detection, and issue triage workflows PiperOrigin-RevId: 939834590 --- .github/workflows/pr-triage-adk-java.yml | 7 ++++++- .github/workflows/spam-detection-adk-java-issues.yml | 7 ++++++- .github/workflows/triage-adk-java-issues.yml | 8 +++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-triage-adk-java.yml b/.github/workflows/pr-triage-adk-java.yml index 1d82ca38b..177ef1698 100644 --- a/.github/workflows/pr-triage-adk-java.yml +++ b/.github/workflows/pr-triage-adk-java.yml @@ -29,6 +29,11 @@ on: description: 'The pull request number to triage' required: true type: 'string' + dry_run: + description: 'Dry run: preview only. Set to false to actually create the issue and PRs.' + required: false + default: true + type: boolean # Serialize runs that touch the same PR so a re-trigger (e.g. an "edited" event) # can't race an in-flight run on the same PR (which, with label appends, could @@ -78,7 +83,7 @@ jobs: INTERACTIVE: '0' # Defaults to a dry run (logs intended labels/comments without writing). # Verify the pipeline, then set DRY_RUN to '0' to go live. - DRY_RUN: '1' + DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }} EVENT_NAME: ${{ github.event_name }} PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number }} run: | diff --git a/.github/workflows/spam-detection-adk-java-issues.yml b/.github/workflows/spam-detection-adk-java-issues.yml index de7841d3d..3312841c1 100644 --- a/.github/workflows/spam-detection-adk-java-issues.yml +++ b/.github/workflows/spam-detection-adk-java-issues.yml @@ -27,6 +27,11 @@ on: required: false default: false type: boolean + dry_run: + description: 'Dry run: preview only. Set to false to actually create the issue and PRs.' + required: false + default: true + type: boolean # Serialize runs that touch the same issue so the scheduled sweep can't race a # per-issue run on that issue. @@ -73,7 +78,7 @@ jobs: INTERACTIVE: '0' # Defaults to a dry run (logs intended labels/comments without writing). # Verify the pipeline, then set DRY_RUN to '0' to go live. - DRY_RUN: '1' + DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }} EVENT_NAME: ${{ github.event_name }} ISSUE_NUMBER: ${{ github.event.issue.number }} ISSUE_TITLE: ${{ github.event.issue.title }} diff --git a/.github/workflows/triage-adk-java-issues.yml b/.github/workflows/triage-adk-java-issues.yml index 972a9ef35..7ae4b6ef5 100644 --- a/.github/workflows/triage-adk-java-issues.yml +++ b/.github/workflows/triage-adk-java-issues.yml @@ -17,6 +17,12 @@ on: # Run every 6 hours to triage untriaged issues. - cron: '0 */6 * * *' workflow_dispatch: + inputs: + dry_run: + description: 'Dry run: preview only. Set to false to actually create the issue and PRs.' + required: false + default: true + type: boolean # Serialize runs that touch the same issue so the scheduled batch sweep can't race # a per-issue run on that issue (which, with label appends, could duplicate labels). @@ -63,7 +69,7 @@ jobs: INTERACTIVE: '0' # Defaults to a dry run (logs intended labels/assignees without writing). # Verify the pipeline, then set DRY_RUN to '0' to go live. - DRY_RUN: '1' + DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }} EVENT_NAME: ${{ github.event_name }} ISSUE_NUMBER: ${{ github.event.issue.number }} ISSUE_TITLE: ${{ github.event.issue.title }}