Skip to content

Commit ad670bb

Browse files
sbryngelsonclaude
andcommitted
Fix bot detection: use unique group for all review events
AI reviewer accounts (coderabbitai, copilot-pull-request-reviewer, etc.) are Organization or User type, not Bot. Instead of trying to detect bots, give all pull_request_review runs a unique concurrency group so they never cancel pull_request benchmark runs. The self job's if condition already gates for approved human reviews only. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6916331 commit ad670bb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/bench.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ on:
77
workflow_dispatch:
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}${{ github.event_name == 'pull_request_review' && github.event.review.user.type == 'Bot' && format('-bot-{0}', github.run_id) || '' }}
10+
group: ${{ github.workflow }}-${{ github.ref }}${{ github.event_name == 'pull_request_review' && format('-review-{0}', github.run_id) || '' }}
1111
cancel-in-progress: true
1212

1313
jobs:
1414
file-changes:
1515
name: Detect File Changes
16-
if: >
17-
github.event_name != 'pull_request_review' ||
18-
github.event.review.user.type != 'Bot'
1916
runs-on: 'ubuntu-latest'
2017
outputs:
2118
checkall: ${{ steps.changes.outputs.checkall }}

0 commit comments

Comments
 (0)