Skip to content

Commit 118f6ea

Browse files
Add concurrency group and bot filter to Claude Code workflow
- Add concurrency group to cancel in-progress reviews on the same PR when a new push arrives (avoids duplicate reviews from rapid pushes) - Filter out bot comments from @claude trigger to prevent infinite loops Co-authored-by: Isaac
1 parent 0cd7b6c commit 118f6ea

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/claude-code.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
# Automatic PR review when a PR is opened or updated.
2222
review:
2323
if: github.event_name == 'pull_request'
24+
concurrency:
25+
group: claude-review-${{ github.event.pull_request.number }}
26+
cancel-in-progress: true
2427
runs-on:
2528
group: databricks-deco-testing-runner-group
2629
labels: ubuntu-latest-deco
@@ -51,8 +54,11 @@ jobs:
5154
# Interactive @claude mentions.
5255
assist:
5356
if: |
54-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
55-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
57+
github.event.comment.user.type != 'Bot' &&
58+
(
59+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
60+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
61+
)
5662
runs-on:
5763
group: databricks-deco-testing-runner-group
5864
labels: ubuntu-latest-deco

0 commit comments

Comments
 (0)