Skip to content

8.5 The merge kinds

Every open pull request carries exactly one merge label, which says who merges it: the coordinator on the owner's standing consent, the coordinator after the owner's Approve review, or the owner alone (#481, sdlc/decisions.md). The reason: routine work should not wait for the owner, while changes to CI, the rules, secrets handling and the decisions themselves need the owner's consent, and the agents share one bot account, so an approval by an agent would prove nothing (lessons-learned.md).

The labels

Label Who acts
merge:agent the coordinator, on the standing consent
needs:owner-approval the coordinator, after the owner's Approve review
needs:owner-merge the owner alone

Rules

  1. Set when the pull request opens, and checked again after each push and right before the merge; coordinator merge-kind <pr> gives the label from the criteria that can be checked (sdlc/quality-gate.md).
  2. Owner paths need the owner's approval: the paths .github/CODEOWNERS lists, which a CI check keeps equal to the coordinator's own list (ci/codeowners.md), and an ADR (sdlc/decisions.md).
  3. The stricter label wins, and a worker never lowers one the owner set; a breaking change is the owner's to merge (sdlc/decisions.md).
  4. Consent is recorded on GitHub, as the owner's Approve review on the current head or, in advance, the owner's owner:approved label on the issue (#619); a yes in chat counts only in the cases that page names (sdlc/decisions.md).
  5. Squash only. Every pull request squash-merges with its title and body; bringing main into a branch stays a merge (#596, sdlc/quality-gate.md).
  6. A worker never merges, and every coordinator merge names its session in a comment (8.3).
  7. A branch merges behind main unless main changed a plugin or file it also changes, or it has a conflict; a version clash that gets through turns main red and is fixed by a follow-up (#735; ADR 0007 (docs/adr/0007-merge-queue-and-organization.md), proposed; ci/checks.md).

Where it is described

Topic How-to
The labels, consent and pre-approval sdlc/decisions.md
When a pull request is mergeable, squash merges sdlc/quality-gate.md
The coordinator's merge command sdlc/parallel-work.md
CODEOWNERS and the ruleset ci/codeowners.md