Repository navigation
feat(code-review): default to approve plus auto-merge where the repository allows it - #1951
Merged
Merged
Conversation
…itory allows it When the target repository allows auto-merge and the viewer can enable it, the disposition that ends in an APPROVE now defaults to APPROVE+AUTO-MERGE, or FIXUP+APPROVE+AUTO-MERGE when the fixup is eligible. Real CI that is still running no longer gates that path: the approval and auto-merge go in at once and GitHub holds the merge until the required checks pass. Failing CI, bot-only green rollups and workflows waiting for approval stay gates (Golden rule 8), with ci_action naming the runs to approve or re-run first. gql-cr-pr reads autoMergeAllowed, viewerCanEnableAutoMerge, viewerDefaultMergeMethod and autoMergeRequest; render --auto-merge emits the gh pr merge --auto command and refuses self-authored PRs. Generated-by: Claude Opus 5
…held runs render --auto-merge now re-runs the disposition gates with the same viewer and flags and fails closed on an unknown or mismatched viewer, so it can no longer emit a merge command the gates would refuse. The merge command pins the reviewed head with --match-head-commit, and the docs refresh the liveness read before the post-review guard. Running CI only stops gating the auto-merge path when every running check is required (isRequired), since auto-merge does not wait for the rest. Before relying on auto-merge, the flow releases workflow runs held in action_required at the head: release-runs reads runs-at-head, workflow-approve releases first-time-contributor runs, and the new run-rerun op re-runs the ones GitHub says are not waiting for approval. Generated-by: Claude Opus 5
…t unread checks as pending release-runs now loads the saved gql-cr-pr read and refuses a head it does not show, and any head other than the reviewed one unless it is the viewer's own single fixup commit on top of it, so CI never runs an unreviewed head's code. A statusCheckRollup read that stops short of every context (hasNextPage, or totalCount above the nodes read) now counts the unread checks as pending and not required, keeping the CI gate closed instead of failing open. The fixup path re-reads gql-cr-pr after the push and re-runs disposition before approving, so render pins the merge to the fixup SHA. Generated-by: Claude Opus 5
…rified-signed fixup Author metadata is free text, so release-runs no longer trusts it. The viewer now comes from the saved gql-cr-pr read (a missing or different --viewer is refused), the head must carry an APPROVED review by that viewer, and a fixup on top of an approved head is accepted only as a single commit whose only parent is that head, with a verified signature by the viewer and the viewer as its only linked author. The last two commits are read separately (headCommits, with parents and signature), which also keeps the check working on PRs with more than 100 commits. Generated-by: Claude Opus 5
potiuk
enabled auto-merge (squash)
November 1, 2026 10:27
Regenerate plugins/magpie-security-tools/tools/pr-management from tools/pr-management so check-family-plugins passes. Generated-by: Claude Opus 5
This was referenced Nov 1, 2026
6 of 7 tasks
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
APPROVE+AUTO-MERGE, orFIXUP+APPROVE+AUTO-MERGEwhen the fixup applies. Maintainers stop waiting on CI that GitHub would gate anyway: real CI that is still running no longer blocks this path when every running check is required.render --auto-mergere-runs the disposition gates, takes the viewer from the saved read, and pins the merge with--match-head-commit <reviewed sha>.action_requiredat the head (release-runs/release-result, plus a newrun-rerunop, falling back from "not waiting for approval" to a re-run) — only for a head the viewer approved, or a single verified-signed fixup commit by the viewer on top of it. Repositories without auto-merge are unaffected.Type of change
plugins/magpie-pr-management/skills/code-review/)tools/pr-management,tools/vetted-ops)Test plan
prek run --all-filespasses (validator, surface hash, token stamp, family-plugin sync)uv run pytestpasses fortools/pr-managementandtools/vetted-ops, rebased on fix(marketplace): ship every family's framework tools, not just security's #1937renderpath (failing CI, open thread, CHANGES_REQUESTED, unanswered question, self-authored, unknown/mismatched viewer); non-required pending check; truncated check list; release plan and the 403 / already-running fallbacks; stale/unapproved head; fixup forged, unsigned, invalidly signed, signed by someone else, unlinked author, co-authored, wrong parent, merge commitRFC-AI-0004 compliance
workflow-approve/run-rerungo throughvetted-op, which promptsghcallNotes for reviewers
runs-at-head,workflow-approveandrun-reruntopr-management-code-reviewin.apache-magpie-overrides/tools/vetted-ops/config.tomlfor the release flow to run on this repo (an edit-denied security control, so not changed here).apache/airflowreviews; three roborev passes and an automated security review were addressed in the follow-up commits (gate parity onrender, head binding for held-run release, fail-closed on truncated checks, signature-verified fixups).Generated-by: Claude Opus 5