Skip to content

[robert plant voice] i got a whole lotta diffs #39

[robert plant voice] i got a whole lotta diffs

[robert plant voice] i got a whole lotta diffs #39

name: Claude Code Review
on:
pull_request:
types: [opened, synchronize] # Runs on new PRs and updates
jobs:
code-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
env:
OVERRIDE_GITHUB_TOKEN: ${{ secrets.CLAUDE_PAT_TOKEN }}
steps:
# Simply checking out the repository is sufficient - the action handles the PR code
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Get full history for accurate diffs
- name: Run Code Review with Claude
uses: anthropics/claude-code-action@beta
env:
OVERRIDE_GITHUB_TOKEN: ${{ secrets.CLAUDE_PAT_TOKEN }}
with:
# Your Anthropic API key
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Direct prompt for Claude to execute
direct_prompt: "Review the PR changes. Focus on code quality, potential bugs, and performance issues. Suggest improvements where appropriate. Pay special attention to Kubernetes operator patterns and Go best practices according to the CLAUDE.md file."
# Timeout for execution
timeout_minutes: 15