"Update Claude Code Review workflow"

This commit is contained in:
Thomas Davis 2026-01-20 03:12:04 +10:00
parent ac6fdb87e7
commit c56534a4ae

View file

@ -2,7 +2,7 @@ name: Claude Code Review
on: on:
pull_request: pull_request:
types: [opened, synchronize] types: [opened, synchronize, ready_for_review, reopened]
# Optional: Only run on specific file changes # Optional: Only run on specific file changes
# paths: # paths:
# - "src/**/*.ts" # - "src/**/*.ts"
@ -36,22 +36,9 @@ jobs:
uses: anthropics/claude-code-action@v1 uses: anthropics/claude-code-action@v1
with: with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: | plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
REPO: ${{ github.repository }} plugins: 'code-review@claude-code-plugins'
PR NUMBER: ${{ github.event.pull_request.number }} prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
Please review this pull request and provide feedback on:
- Code quality and best practices
- Potential bugs or issues
- Performance considerations
- Security concerns
- Test coverage
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://code.claude.com/docs/en/cli-reference for available options # or https://code.claude.com/docs/en/cli-reference for available options
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:*)"'