ci: auto-review every PR with Claude#297
Merged
Merged
Conversation
Adds a pull_request-triggered workflow that runs an automated Claude code review on every PR to main/develop and posts findings as PR comments (top-level summary + inline notes). Security-weighted prompt for this payments/multisig/ZK codebase, scoped gh tooling, per-PR concurrency. Requires a maintainer to install the Claude GitHub App and add the ANTHROPIC_API_KEY Actions secret before the job can authenticate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Switch the review workflow auth from anthropic_api_key to claude_code_oauth_token so it runs on the team's Claude Pro/Max subscription. Secret renamed to CLAUDE_CODE_OAUTH_TOKEN. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/claude-review.yaml— apull_request-triggered workflow that runs an automated Claude code review on every PR tomainordevelopand posts findings as PR comments (top-level summary + inline line notes).Event-driven: fires the moment a PR is opened, updated, or reopened — no polling, no open session required.
Details
opened,synchronize,reopenedon PRs intomain/develop.claude_code_oauth_token— runs on the team's Claude Pro/Max subscription (no separate API billing).gh pr comment/diff/view+ inline-comment MCP only.actions/checkout@v4to match the existing workflows.Required before this works (maintainer, one-time)
Poly-pay/polypay_app: https://github.com/apps/claude — (done)claude setup-tokenand add it as theCLAUDE_CODE_OAUTH_TOKENActions secret (Settings → Secrets and variables → Actions).🤖 Generated with Claude Code