@@ -27,52 +27,35 @@ jobs:
2727
2828 steps :
2929 - name : Checkout repository
30- uses : actions/checkout@v4
30+ uses : actions/checkout@v6
3131 with :
3232 fetch-depth : 1
3333
3434 - name : Run Claude Code Review
3535 id : claude-review
36- uses : anthropics/claude-code-action@beta
36+ uses : anthropics/claude-code-action@v1
3737 with :
3838 claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3939
40- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
41- # model: "claude-opus-4-1-20250805"
40+ # In v1, providing a `prompt` runs in automation mode, which does NOT
41+ # post a comment by default. track_progress restores the v0.x
42+ # "post the review as a PR comment" behavior and auto-injects PR context.
43+ track_progress : true
4244
43- # Direct prompt for automated review (no @claude mention needed)
44- direct_prompt : |
45+ # Prompt for the automated review (no @claude mention needed).
46+ prompt : |
4547 Please review this pull request and provide feedback on:
4648 - Code quality and best practices
4749 - Potential bugs or issues
4850 - Performance considerations
4951 - Security concerns
5052 - Test coverage
51-
53+
5254 Be constructive and helpful in your feedback.
5355
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-
57- # Optional: Customize review based on file types
58- # direct_prompt: |
59- # Review this PR focusing on:
60- # - For TypeScript files: Type safety and proper interface usage
61- # - For API endpoints: Security, input validation, and error handling
62- # - For React components: Performance, accessibility, and best practices
63- # - For tests: Coverage, edge cases, and test quality
64-
65- # Optional: Different prompts for different authors
66- # direct_prompt: |
67- # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
68- # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
69- # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
70-
71- # Optional: Add specific tools for running tests or linting
72- # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
73-
74- # Optional: Skip review for certain conditions
75- # if: |
76- # !contains(github.event.pull_request.title, '[skip-review]') &&
77- # !contains(github.event.pull_request.title, '[WIP]')
56+ # Args passed through to the Claude CLI. Use the `opus` alias rather
57+ # than a dated model id so the workflow tracks the current Opus and
58+ # won't 404 when a specific version is retired.
59+ claude_args : |
60+ --model opus
7861
0 commit comments