Created
March 12, 2026 13:49
-
-
Save tedgonzalez/b72612e9eff12e259fc77bb71ee2891e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude - Review | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| types: [opened, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| actions: read | |
| concurrency: | |
| group: 'claude-review-${{ github.event.pull_request.number }}' | |
| cancel-in-progress: true | |
| jobs: | |
| review: | |
| runs-on: ubuntu-24.04 # you can specify your own runner | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: anthropics/claude-code-action@v1 | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| show_full_output: true | |
| prompt: | | |
| REPO: ${{ github.repository }} | |
| PR NUMBER: ${{ github.event.pull_request.number }} | |
| Perform a comprehensive code review using .github/copilot-instructions.md | |
| Use inline comments only for concrete suggestions or potential | |
| issues. Do NOT leave inline comments that merely confirm correct | |
| usage or praise existing code — those create unresolvable noise. | |
| Put general observations and positive feedback in your top-level | |
| summary instead. | |
| IMPORTANT: Use `gh pr diff` to obtain the PR diff. Do NOT create | |
| "test" or probe comments to discover the diff. Never post inline | |
| comments with placeholder content like "test" or "Test". | |
| IMPORTANT: Use the provided MCP tools (mcp__github_comment, | |
| mcp__github_inline_comment) for posting comments. Do NOT use curl, | |
| python, or other HTTP tools to call the GitHub API directly. | |
| IMPORTANT: If you encounter a permission denial for a tool you need, | |
| create a GitHub issue with the label "claude-permissions" titled | |
| "Claude Code Review: missing permission for <tool-name>" describing | |
| which tool was denied and why it was needed. | |
| claude_args: '--model eu-opus-4-6 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment