@@ -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
@@ -33,15 +33,10 @@ jobs:
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 }}
39-
40- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
41- # model: "claude-opus-4-1-20250805"
42-
43- # Direct prompt for automated review (no @claude mention needed)
44- direct_prompt : |
39+ prompt : |
4540 Please review this pull request and provide feedback on:
4641 - Code quality and best practices
4742 - Potential bugs or issues
@@ -54,27 +49,11 @@ jobs:
5449 Be constructive and helpful in your feedback but do not repeat yourself - only summarise potential issues.
5550 Test coverage is currently not a priority.
5651 Prefix section headers with emojis and use dividers for better readability.
57-
58- use_sticky_comment : true
59-
60- # Optional: Customize review based on file types
61- # direct_prompt: |
62- # Review this PR focusing on:
63- # - For TypeScript files: Type safety and proper interface usage
64- # - For API endpoints: Security, input validation, and error handling
65- # - For React components: Performance, accessibility, and best practices
66- # - For tests: Coverage, edge cases, and test quality
67-
68- # Optional: Different prompts for different authors
69- # direct_prompt: |
70- # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
71- # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
72- # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
52+
53+ Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
54+ Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
7355
74- # Optional: Add specific tools for running tests or linting
75- # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
76-
77- # Optional: Skip review for certain conditions
78- # if: |
79- # !contains(github.event.pull_request.title, '[skip-review]') &&
80- # !contains(github.event.pull_request.title, '[WIP]')
56+ # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
57+ # or https://docs.anthropic.com/en/docs/claude-code/sdk#command-line for available options
58+ 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:*)"'
59+ use_sticky_comment : true
0 commit comments