@@ -3,21 +3,9 @@ name: Claude Code Review
33on :
44 pull_request :
55 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"
126
137jobs :
148 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'
20-
219 runs-on : ubuntu-latest
2210 permissions :
2311 contents : read
3624 uses : anthropics/claude-code-action@v1
3725 with :
3826 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
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 }}'
42- claude_args : ' --model claude-haiku-4-5'
43- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
44- # or https://code.claude.com/docs/en/cli-reference for available options
27+ prompt : |
28+ REPO: ${{ github.repository }}
29+ PR NUMBER: ${{ github.event.pull_request.number }}
30+ Please review this pull request focusing on code quality, potential bugs, and security issues.
31+ Use `gh pr comment` for top-level feedback.
32+ Use `mcp__github_inline_comment__create_inline_comment` (with `confirmed: true`) for specific code issues.
33+ Only post GitHub comments - don't submit review text as messages.
34+ claude_args : ' --model claude-haiku-4-5 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"'
0 commit comments