@@ -2,11 +2,13 @@ name: Claude Code Review
22
33on :
44 pull_request :
5- types : [opened, synchronize]
6- paths-ignore :
7- - ' **.md'
8- - ' LICENSE'
9- - ' .gitignore'
5+ types : [opened, synchronize, ready_for_review, reopened]
6+ # Optional: Only run on specific file changes
7+ # paths:
8+ # - "src/**/*.ts"
9+ # - "src/**/*.tsx"
10+ # - "src/**/*.js"
11+ # - "src/**/*.jsx"
1012
1113jobs :
1214 claude-review :
@@ -18,11 +20,10 @@ jobs:
1820
1921 runs-on : ubuntu-latest
2022 permissions :
21- contents : write
22- pull-requests : write
23- issues : write
23+ contents : read
24+ pull-requests : read
25+ issues : read
2426 id-token : write
25- actions : read
2627
2728 steps :
2829 - name : Checkout repository
3536 uses : anthropics/claude-code-action@v1
3637 with :
3738 claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38- prompt : |
39- REPO: ${{ github.repository }}
40- PR NUMBER: ${{ github.event.pull_request.number }}
41-
42- Please review this pull request and provide feedback on:
43- - Code quality and best practices
44- - Potential bugs or issues
45- - Performance considerations
46- - Security concerns
47- - Test coverage
48-
49- Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
50-
51- Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
52-
39+ plugin_marketplaces : ' https://github.com/anthropics/claude-code.git'
40+ plugins : ' code-review@claude-code-plugins'
41+ prompt : ' /code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
5342 # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5443 # or https://code.claude.com/docs/en/cli-reference for available options
55- claude_args : ' --allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)" '
44+
0 commit comments