@@ -17,14 +17,14 @@ jobs:
1717 # github.event.pull_request.user.login == 'external-contributor' ||
1818 # github.event.pull_request.user.login == 'new-developer' ||
1919 # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
20+
2121 runs-on : ubuntu-latest
2222 permissions :
2323 contents : read
2424 pull-requests : read
2525 issues : read
2626 id-token : write
27-
27+
2828 steps :
2929 - name : Checkout repository
3030 uses : actions/checkout@v4
@@ -35,10 +35,10 @@ jobs:
3535 id : claude-review
3636 uses : anthropics/claude-code-action@beta
3737 with :
38- anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
38+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3939
40- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
41- # model: "claude-opus-4-20250514 "
40+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1 )
41+ # model: "claude-opus-4-1-20250805 "
4242
4343 # Direct prompt for automated review (no @claude mention needed)
4444 direct_prompt : |
@@ -48,27 +48,31 @@ jobs:
4848 - Performance considerations
4949 - Security concerns
5050 - Test coverage
51-
51+
5252 Be constructive and helpful in your feedback.
5353
54+ # Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
55+ # use_sticky_comment: true
56+
5457 # Optional: Customize review based on file types
5558 # direct_prompt: |
5659 # Review this PR focusing on:
5760 # - For TypeScript files: Type safety and proper interface usage
5861 # - For API endpoints: Security, input validation, and error handling
5962 # - For React components: Performance, accessibility, and best practices
6063 # - For tests: Coverage, edge cases, and test quality
61-
64+
6265 # Optional: Different prompts for different authors
6366 # direct_prompt: |
64- # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
67+ # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
6568 # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
6669 # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
67-
70+
6871 # Optional: Add specific tools for running tests or linting
6972 # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
70-
73+
7174 # Optional: Skip review for certain conditions
7275 # if: |
7376 # !contains(github.event.pull_request.title, '[skip-review]') &&
7477 # !contains(github.event.pull_request.title, '[WIP]')
78+
0 commit comments