Skip to content

Commit 9faf835

Browse files
only21milclaude
andcommitted
perf(ci): skip PR vouch jobs for ordinary comments
Every issue and PR comment started a runner just so the collect script could find no /recheck-vouch command and exit. A job-level if now skips the collect job, and the label job that needs it, unless the comment is on a PR and contains /recheck-vouch. The script keeps its own check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bd6940b commit 9faf835

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/pr-vouch.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ permissions:
2020
jobs:
2121
collect-targets:
2222
name: Collect PR targets
23+
# Most comments are not recheck commands; skip them before a runner starts.
24+
if: >-
25+
github.event_name != 'issue_comment' ||
26+
(github.event.issue.pull_request && contains(github.event.comment.body, '/recheck-vouch'))
2327
runs-on: ubuntu-24.04
2428
outputs:
2529
targets: ${{ steps.collect.outputs.targets }}

0 commit comments

Comments
 (0)