Skip to content

Commit db40c5c

Browse files
committed
fix: run only for owners
1 parent 5fd2b6a commit db40c5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ on:
1414

1515
jobs:
1616
claude-review:
17-
# Optional: Skip review for specific conditions
17+
# Only run for code owners and skip specific conditions
1818
if: |
1919
!contains(github.event.pull_request.title, '[skip-review]') &&
2020
!contains(github.event.pull_request.title, '[WIP]') &&
21-
github.event.pull_request.draft == false
21+
github.event.pull_request.draft == false &&
22+
(github.event.pull_request.author_association == 'OWNER' ||
23+
github.event.pull_request.author_association == 'MEMBER' ||
24+
github.event.pull_request.author_association == 'COLLABORATOR')
2225
2326
runs-on: ubuntu-latest
2427
permissions:

0 commit comments

Comments
 (0)