ci(auto-merge): add owner tier - #90
Merged
Merged
Conversation
Owner-authored PRs now get auto-merge enabled on CI green — matches the existing pattern for Dependabot, Renovate, AI bots, and CodeRabbit. Branch protection still gates the merge on required status checks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review Summary by CodeRabbit
WalkthroughThe workflow adds a new auto-merge tier for pull requests opened by the repository owner, enabling automatic squash-merge when CI passes on non-draft PRs. ChangesOwner PR Auto-Merge
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Review rate limit: 3/5 reviews remaining, refill in 23 minutes and 48 seconds. Comment |
There was a problem hiding this comment.
Pull request overview
Adds a new “owner” tier to the repository’s auto-merge workflow so PRs opened by the repository owner can have auto-merge enabled automatically (still gated by branch protection / required checks).
Changes:
- Add an “Owner auto-merge” job that enables
gh pr merge --auto --squashfor non-draft PRs authored by the repo owner. - Update the workflow’s tier list comment to include the owner tier.
| owner-auto-merge: | ||
| name: Owner auto-merge | ||
| runs-on: ubuntu-latest | ||
| if: | |
Comment on lines
5
to
+8
| # 1b. Renovate PRs: Auto-approve + auto-merge | ||
| # 2. AI Agent fix PRs (copilot/, jules/, claude/): Auto-merge when CI passes | ||
| # 3. CodeRabbit approved PRs: Auto-merge when CI passes | ||
| # 4. Owner PRs: Auto-merge when CI passes |
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.
Summary
Adds an
owner-auto-mergetier to the existing auto-merge workflow.Why
The existing tiers fire only for Dependabot/Renovate/AI-bot accounts and CodeRabbit-approved PRs. PRs authored by the repo owner via the local `gh` CLI fall through every tier and have to be merged manually. This adds a 5th tier that enables `gh pr merge --auto --squash` whenever the PR author equals the repository owner — branch protection still gates the actual merge on required CI checks.
Test plan
🤖 Generated with Claude Code