ci: fix Renovate automerge — add bot self-approval workflow#23
Merged
obrien-k merged 1 commit intoJul 10, 2026
Merged
Conversation
Branch protection requires 1 approving review on main, and Renovate cannot approve its own PRs — so every automerge:true rule in renovate.json was silently inert (PRs sat REVIEW_REQUIRED forever despite passing checks). Add a workflow that approves a PR only when it's from renovate[bot], same-repo (not a fork), and carries the 'automerge' label — which renovate.json now attaches only to the pre-decided safe classes (dev-tooling patch/minor, github-actions digests, lockfile maintenance). Prisma, base images, and majors carry no such label and still require a human review. Also enabled the 'Allow auto-merge' repo setting (was off), required for Renovate's platformAutomerge request to take effect once approved.
Up to standards ✅🟢 Issues
|
This was referenced Jul 11, 2026
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
Renovate's automerge rules were silently inert: branch protection on
mainrequires 1 approving review, and Renovate cannot approve its own PRs. PR #22 (the forcedactions/checkoutbump) passed all checks and satREVIEW_REQUIRED/BLOCKEDindefinitely — confirmed live before writing this fix.Changes:
.github/workflows/renovate-approve.yml: approves a PR only whengithub.actor == 'renovate[bot]', the PR head is same-repo (not a fork), and it carries theautomergelabel.renovate.json: attach"labels": ["automerge"]only to the pre-decided safe classes (dev-tooling patch/minor where applicable, github-actions digests, lockfile maintenance). Prisma, Docker base images, and majors carry no such label, so they still require a human review — unchanged from the original policy.Validated offline:
npx renovate-config-validator renovate.json→Config validated successfully.Follow-up to #9.
Test plan
renovate-config-validatorpasses