Skip to content

Commit 07a48b2

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Make dry_run configurable for ADK Java PR triage, spam detection, and issue triage workflows
PiperOrigin-RevId: 939692247
1 parent 1cde379 commit 07a48b2

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/pr-triage-adk-java.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
description: 'The pull request number to triage'
3030
required: true
3131
type: 'string'
32+
dry_run:
33+
description: 'Dry run: preview only. Set to false to actually create the issue and PRs.'
34+
required: false
35+
default: true
36+
type: boolean
3237

3338
# Serialize runs that touch the same PR so a re-trigger (e.g. an "edited" event)
3439
# can't race an in-flight run on the same PR (which, with label appends, could
@@ -78,7 +83,7 @@ jobs:
7883
INTERACTIVE: '0'
7984
# Defaults to a dry run (logs intended labels/comments without writing).
8085
# Verify the pipeline, then set DRY_RUN to '0' to go live.
81-
DRY_RUN: '1'
86+
DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }}
8287
EVENT_NAME: ${{ github.event_name }}
8388
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number }}
8489
run: |

.github/workflows/spam-detection-adk-java-issues.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ on:
2727
required: false
2828
default: false
2929
type: boolean
30+
dry_run:
31+
description: 'Dry run: preview only. Set to false to actually create the issue and PRs.'
32+
required: false
33+
default: true
34+
type: boolean
3035

3136
# Serialize runs that touch the same issue so the scheduled sweep can't race a
3237
# per-issue run on that issue.
@@ -73,7 +78,7 @@ jobs:
7378
INTERACTIVE: '0'
7479
# Defaults to a dry run (logs intended labels/comments without writing).
7580
# Verify the pipeline, then set DRY_RUN to '0' to go live.
76-
DRY_RUN: '1'
81+
DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }}
7782
EVENT_NAME: ${{ github.event_name }}
7883
ISSUE_NUMBER: ${{ github.event.issue.number }}
7984
ISSUE_TITLE: ${{ github.event.issue.title }}

.github/workflows/triage-adk-java-issues.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ on:
1717
# Run every 6 hours to triage untriaged issues.
1818
- cron: '0 */6 * * *'
1919
workflow_dispatch:
20+
inputs:
21+
dry_run:
22+
description: 'Dry run: preview only. Set to false to actually create the issue and PRs.'
23+
required: false
24+
default: true
25+
type: boolean
2026

2127
# Serialize runs that touch the same issue so the scheduled batch sweep can't race
2228
# a per-issue run on that issue (which, with label appends, could duplicate labels).
@@ -63,7 +69,7 @@ jobs:
6369
INTERACTIVE: '0'
6470
# Defaults to a dry run (logs intended labels/assignees without writing).
6571
# Verify the pipeline, then set DRY_RUN to '0' to go live.
66-
DRY_RUN: '1'
72+
DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }}
6773
EVENT_NAME: ${{ github.event_name }}
6874
ISSUE_NUMBER: ${{ github.event.issue.number }}
6975
ISSUE_TITLE: ${{ github.event.issue.title }}

0 commit comments

Comments
 (0)