@@ -2,7 +2,7 @@ name: Claude Code Review
22
33on :
44 pull_request :
5- types : [opened, synchronize]
5+ types : [opened, synchronize, ready_for_review, reopened ]
66 # Optional: Only run on specific file changes
77 # paths:
88 # - "src/**/*.ts"
@@ -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,44 +33,12 @@ 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 :
38- anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
39-
40- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
41- # model: "claude-opus-4-20250514"
42-
43- # Direct prompt for automated review (no @claude mention needed)
44- direct_prompt : |
45- Please review this pull request and provide feedback on:
46- - Code quality and best practices
47- - Potential bugs or issues
48- - Performance considerations
49- - Security concerns
50- - Test coverage
51- - Confirm that the documentation is up to date and complete
52-
53- Be constructive and helpful in your feedback.
54-
55- # Optional: Customize review based on file types
56- # direct_prompt: |
57- # Review this PR focusing on:
58- # - For TypeScript files: Type safety and proper interface usage
59- # - For API endpoints: Security, input validation, and error handling
60- # - For React components: Performance, accessibility, and best practices
61- # - For tests: Coverage, edge cases, and test quality
62-
63- # Optional: Different prompts for different authors
64- # direct_prompt: |
65- # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
66- # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
67- # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
68-
69- # Optional: Add specific tools for running tests or linting
70- # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
71-
72- # Optional: Skip review for certain conditions
73- # if: |
74- # !contains(github.event.pull_request.title, '[skip-review]') &&
75- # !contains(github.event.pull_request.title, '[WIP]')
38+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
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+ # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
43+ # or https://code.claude.com/docs/en/cli-reference for available options
7644
0 commit comments