Skip to content

Commit 65e6199

Browse files
authored
chore(ci): refine claude-review concurrency handling (#130)
1 parent c6a7c04 commit 65e6199

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/claude-review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ on:
2222
permissions: {}
2323

2424
concurrency:
25-
group: claude-review-${{ github.repository }}-${{ github.event.issue.number }}
25+
# Only @claude comments share the per-PR group, so a new @claude cancels an in-progress one.
26+
# Other issue_comment events (e.g. the tracking/result comments this workflow posts via the
27+
# GitHub App token) get a unique per-comment group, so they can't cancel an in-progress run.
28+
# The job-level `if:` skips those non-@claude runs; the group split prevents cross-cancellation.
29+
group: ${{ contains(github.event.comment.body, '@claude') && format('claude-review-{0}-{1}', github.repository, github.event.issue.number) || format('claude-review-noop-{0}', github.event.comment.id) }}
2630
cancel-in-progress: true
2731

2832
jobs:

0 commit comments

Comments
 (0)