Skip to content

Commit e0838ac

Browse files
authored
fix: claude code review only on mentioning (#270)
1 parent 0e5f743 commit e0838ac

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, ready_for_review, reopened]
5+
types: [review_requested]
66
# Optional: Only run on specific file changes
77
# paths:
88
# - "src/**/*.ts"
@@ -12,11 +12,10 @@ on:
1212

1313
jobs:
1414
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
15+
# Only run when a specific reviewer is requested (e.g., "claude-code" or specific team)
16+
if: |
17+
contains(github.event.pull_request.requested_reviewers.*.login, 'claude-code') ||
18+
contains(github.event.pull_request.requested_teams.*.slug, 'claude-code')
2019
2120
runs-on: ubuntu-latest
2221
permissions:

0 commit comments

Comments
 (0)