Repository navigation
Improvement: the maintenance bot never proposes a merge GitHub would refuse - #2520
Merged
Merged
Conversation
…refuse The bot's weekly retro (30 Nov 2026) flagged 3 of 28 merges failed. One (#2080, required checks not reported) is already held back since #2257. The other two still pass the policy: #2110 conflicted with main, and #2344 still carried the bot's own change request, so the owner tapped Approve and GitHub refused. The policy and the executor now hold back a merge that conflicts with main or that a reviewer's latest verdict still requests changes on. Co-Authored-By: Claude Opus 5.5 <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 works now: the maintenance bot no longer asks the owner to approve a merge that GitHub then refuses. Nothing changes for musicians or module authors. The owner must Approve it on Telegram, because it changes the bot's own code. Not tested on a unit, because it is bot code only.
readTargetalso reads the pull request'smergeableflag and its reviews. A newmergeBlockinpolicy.mjsnames a conflict with main, or a reviewer whose latest verdict (approve, request changes or dismissed) still requests changes. The policy holds back a merge proposal for either, and the executor checks again when the merge runs, like it already does for green checks. The prompt tells the hard lane the same, and what to do when an author met its own change request: say so in a review, and the owner dismisses it.docs/MAINTENANCE_BOT.mdsays it too.npx vitest run scripts/maintenance-bot(57 tests pass, one new one for the guard), thennpm run pr:ready. I read each failed and stopped merge in the bot's ledger and on GitHub.mergeable(still computing) does not block, and a later approval or dismissal lifts the same reviewer's change request.scripts/maintenance-bot/prompt.md. No bot lesson stated it, so there is nothing to/forget.Ledger rows behind this
🤖 Generated with Claude Code