1+ name : PR Review
2+
3+ on :
4+ pull_request :
5+ types : [opened, synchronize]
6+
7+ jobs :
8+ review :
9+ name : Review
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pull-requests : read
14+ id-token : write
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v5
19+ with :
20+ fetch-depth : 1
21+
22+ - name : Automatic PR Review
23+ uses : anthropics/claude-code-action@v1-dev
24+ with :
25+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
26+ prompt : |
27+ REPO: ${{ github.repository }}
28+ PR NUMBER: ${{ github.event.pull_request.number }}
29+
30+ Please review this pull request.
31+
32+ Note: The PR branch is already checked out in the current working directory.
33+
34+ Focus on:
35+ - Code quality and best practices
36+ - Potential bugs or issues
37+ - Performance considerations
38+ - Security implications
39+ - Test coverage
40+ - Documentation updates if needed
41+ - Verify that README.md and docs are updated for any new features or config changes
42+
43+ Provide constructive feedback with specific suggestions for improvement.
44+ Use `gh pr comment:*` for top-level comments.
45+ Use `mcp__github_inline_comment__create_inline_comment` to highlight specific areas of concern.
46+ Only your GitHub comments that you post will be seen, so don't submit your review as a normal message, just as comments.
47+ If the PR has already been reviewed, or there are no noteworthy changes, don't post anything.
48+
49+ claude_args : |
50+ --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*)"
0 commit comments