Skip to content

Commit 718487b

Browse files
committed
ci: key Claude review concurrency on PR number
github.head_ref is only the branch name, so pull requests from different forks that share a branch name (e.g. "main") landed in the same group and cancelled each other's reviews. Manual dispatches also fell back to run_id, so they never deduplicated against the PR they targeted.
1 parent 14ddce5 commit 718487b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/claude-code-review.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
type: number
2020

2121
concurrency:
22-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || inputs.pr_number }}
2323
cancel-in-progress: true
2424

2525
jobs:

0 commit comments

Comments
 (0)