Skip to content

Commit 7fa14de

Browse files
mikhail-dclclaude
andcommitted
fix: prevent ext-contribution label on release and github-actions PRs
The check-author job added the ext-contribution label to PR #9311 (release: 2026-07-06). Its opened event fired before the auto-pr label was applied, so the existing !contains(labels, 'auto-pr') guard saw the empty label snapshot and passed; since github-actions[bot] is not a team dev, the label was added. Guard on the head ref and author login instead - both are present in the opened payload immediately, so they do not race asynchronous label creation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 56ba6de commit 7fa14de

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/claude-pr-review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
if: |
1414
github.event_name == 'pull_request' &&
1515
github.event.pull_request.draft == false &&
16+
github.event.pull_request.user.login != 'github-actions[bot]' &&
17+
!startsWith(github.head_ref, 'release/') &&
1618
!contains(github.event.pull_request.labels.*.name, 'no review') &&
1719
!contains(github.event.pull_request.labels.*.name, 'auto-pr') &&
1820
(github.event.action != 'labeled' || github.event.label.name == 'ext-contribution')

0 commit comments

Comments
 (0)