Repository navigation
Conversation
The bot could run any gh pr edit, so it could remove the labels that hold a merge, or rewrite a PR's text or base. mergatron_label.sh allows only the three edits the rules call for: escalate, hold and release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
@claude review this PR: is the change correct, and is it needed? |
Contributor
|
Correct and needed:
Why escalated
|
computron
marked this pull request as ready for review
November 19, 2026 23:25
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.
Problem: the triage bot may run any
gh pr edit. It can removereview requestedordo not merge, the labels that makemergatron_guard.shrefuse a merge, and then merge. It can also rewrite a PR's title, body or base branch.Fix: new
mergatron_label.sh <PR> escalate <login> | hold | release, which runs only those three edits.mergatron.ymlallows it in place ofgh pr edit, the rules name the verbs, andsetup.shinstalls it in every mode. Any other call is refused with the usage line. No other edit command is on either bot's list. This repo's own.github/copy, which already differs from the template, is not changed.Risk:
@claudecomment. That request now fails with the script's usage line.mergatron.ymland notmergatron_label.shlose labeling and escalation until they add the script.setup.shcopies both.Bash(gh pr edit:*)back in the allowed tools.Tested: the new
tests/label_gate.shchecks the exactgharguments for each verb, and that an unknown verb, a missing login and a non-numeric PR are refused. The full suite passes. Not yet run in a live bot job.Closes #28.
PR assisted by Claude Code.