ci: add Claude PR review + auto-merge workflows#13
Merged
Conversation
Mirrors ofw-mcp's universal AI review setup: - pr-auto-review.yml — Claude reviews every same-repo non-bot PR with a JSON-schema-bound verdict (pass / warn / fail). Uses a Haiku/Sonnet/ Opus ladder based on PR size, or `review-with-opus` label to force Opus. On `pass`, adds `ready-to-merge` via RELEASE_PAT. - auto-merge.yml — arms `gh pr merge --auto` on dependabot PRs and on any PR with the `ready-to-merge` label. - claude.yml — ad-hoc dispatch when @claude is mentioned in an issue or PR comment. Required secrets (set separately if not already): - CLAUDE_CODE_OAUTH_TOKEN — set via `set-claude-oauth-secret` - RELEASE_PAT — for label-add events to fire downstream workflows No release pipeline changes in this PR — that's per-repo and lives elsewhere. Co-Authored-By: Claude Opus 4.7 (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.
Adds the universal AI review setup that's standard across the rest of the fleet.
What this PR does
pr-auto-review.yml— Claude reviews every same-repo non-bot PR with a JSON-schema verdict (pass/warn/fail). Uses a Haiku/Sonnet/Opus ladder based on PR size; thereview-with-opuslabel forces Opus.auto-merge.yml— armsgh pr merge --autoon dependabot PRs and on any PR with theready-to-mergelabel.claude.yml— ad-hoc dispatch when@claudeis mentioned in an issue or PR comment.Before merging
CLAUDE_CODE_OAUTH_TOKENsecret must be set on this repoRELEASE_PATsecret should already be set; if not, generate a PAT withreposcope and add as secretWhat this PR does NOT touch
ci.yml/ release / deploy workflows are left alone. A separate release-please migration may come later if the repo's shape supports it.