chore(renovate): enable platform auto-merge for green PRs#111
Merged
Conversation
The Friday-only `schedule` gates Renovate's own merge step, so green PRs sat unmerged for up to a week. Hand merging to GitHub's native auto-merge instead: Renovate flags each PR during the Friday window and GitHub merges it the moment required checks pass, on any day, decoupled from `schedule`. `platformAutomerge` defaults to true; making it explicit documents the dependency on the repo-level prerequisites configured alongside this: - repo setting "Allow auto-merge" enabled - branch protection on `main` requiring the CI checks (MegaLinter, source-tests ubuntu+windows), non-strict, admins exempt Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Captures the lesson from wiring up auto-merge: a restrictive Renovate `schedule` gates Renovate's own merge step, so platform (GitHub-native) auto-merge is needed to merge green PRs outside the window, which in turn needs the repo "Allow auto-merge" setting plus branch protection with the CI checks required (non-strict, admins exempt). 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
Make Renovate auto-merge actually fire for green PRs, and document the lesson.
Auto-merge was declared in
renovate.json5but stopped working when commit003cab3(2026-05-19) added the Friday-onlyschedule: that window gates Renovate's own merge step, so green PRs sat unmerged for up to a week (e.g. #104). The repo also lacked the prerequisites for GitHub-native auto-merge.Changes
.github/renovate.json5— makeplatformAutomerge: trueexplicit and document why it depends on the repo-level prerequisites. Hands merging to GitHub's native auto-merge so green PRs merge the moment required checks pass, on any day, decoupled fromschedule.home/dot_agents/AGENTS.md— capture the reusable lesson (Renovate auto-merge needs platform prerequisites, not justautomerge: true) under "Git and commits".Repo-level changes already applied live (not in this diff)
main: requireMegaLinter,source-tests (ubuntu-24.04),source-tests (windows-2025);strict=false(so the Friday rebase window can't deadlock merges); admins exempt (direct pushes unaffected); no required reviews.Verification
Enabled auto-merge on a failing PR (#108): GitHub accepted the request but held it (
BLOCKED) becauseMegaLinterwas red, confirming auto-merge works and broken PRs stay blocked.🤖 Generated with Claude Code