Skip to content

Instantly share code, notes, and snippets.

@phpfour
Created May 6, 2026 04:48
Show Gist options
  • Select an option

  • Save phpfour/0a5fcab3bd984c9e124b75465845233c to your computer and use it in GitHub Desktop.

Select an option

Save phpfour/0a5fcab3bd984c9e124b75465845233c to your computer and use it in GitHub Desktop.
GitHub Claude Code Review
name: Claude Code Review
on:
pull_request:
types: [opened, ready_for_review, reopened]
jobs:
claude-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
plugins: 'code-review@claude-code-plugins'
prompt: |
REPO: ${{ github.repository }}
PR NUMBER: ${{ github.event.pull_request.number }}
Please analyze the changes in this PR and focus on identifying critical issues related to:
- Potential bugs or issues
- Performance
- Security
- Correctness
If critical issues are found, list them in a few short bullet points. If no critical issues are found, provide a simple approval.
Sign off with a checkbox emoji: ✅ (approved) or 🚫 (issues found).
Keep your response concise. Only highlight critical issues that must be addressed before merging. Skip detailed style or minor suggestions unless they impact performance, security, or correctness.
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.
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:*)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment