[robert plant voice] i got a whole lotta diffs #39
Workflow file for this run
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 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 |