Skip to content

ops: review pull requests with Claude Code - #66

Merged
disconsented merged 2 commits into
masterfrom
chore/claude-code-review
Sep 9, 2026
Merged

disconsented merged 2 commits into
masterfrom
chore/claude-code-review

Conversation

@disconsented

Copy link
Copy Markdown
Owner

Turns on automated review on every pull request, and gives the reviewer the project rules it needs to be useful.

What this adds

.github/workflows/claude-code-review.yml runs the code-review plugin through anthropics/claude-code-action@v1 and posts each finding as an inline comment on the line it found.

Three changes from the documented example:

  • timeout-minutes: 30, so a stuck run cannot bill indefinitely.
  • concurrency with cancel-in-progress, so a fast series of pushes does not stack paid runs on a pull request.
  • An if guard on the head repository. This repository is public, and GitHub keeps secrets away from a run that a fork pull request starts, so those runs would fail on the missing token. The guard skips them instead.

CLAUDE.md describes the layer boundaries, the ID and secret conventions, the migration rules, and the paths the review must skip. The review reads it on every run.

Before this works

The workflow needs two things that are not in this branch:

  1. The Claude GitHub App, installed on this repository from https://github.com/apps/claude
  2. A CLAUDE_CODE_OAUTH_TOKEN repository secret, from claude setup-token

Until the secret exists the job runs and fails on authentication. Nothing blocks a merge, because the job sets no required check.

Cost

The OAuth token draws on the Claude subscription rate limits, so a review costs GitHub Actions minutes and no separate bill. An ANTHROPIC_API_KEY secret would bill API usage instead; the action prefers the API key when both are set.

🤖 Generated with Claude Code

disconsented and others added 2 commits September 9, 2026 16:03
The workflow runs the code-review plugin and posts each finding as an
inline comment. A fork pull request gets no secrets on a public
repository, so the job skips those runs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The CI review reads this file on every pull request. It holds the layer
boundaries, the ID and secret rules, and the paths the review must skip.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@disconsented
disconsented merged commit 3319af3 into master Sep 9, 2026
1 check passed
@disconsented
disconsented deleted the chore/claude-code-review branch September 9, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant