Skip to content

feat(settings): require a merge queue on the default branch (ADR-0042) - #100

Merged
bketelsen merged 1 commit into
mainfrom
snowcat/merge-queue-contract
Aug 19, 2026
Merged

bketelsen merged 1 commit into
mainfrom
snowcat/merge-queue-contract

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Implements ADR-0042:

  • organization/schemas/v1/repository-settings.schema.json: merge_queue widened const false → boolean (compatible widening within v1, ADR-0039); contract v1.json and the valid fixture set it true.
  • scripts/apply-repo-settings.sh: the default-branch ruleset gains the merge_queue rule when the contract wants it (SQUASH, ALLGREEN, max 5 built, 1–5 merged, no wait, 60-min timeout).
  • New scripts/rollout-merge-queue.sh <owner/repo>... [--apply] [--allow-missing-merge-group]: per repo, refuses when pull_request-triggered workflows lack merge_group: (the queue would stall), reads the live ruleset's required checks, and calls the apply script. Dry-run by default.
  • .github/workflows/ci.yml: core's CI runs on merge_group too.
  • organization/README.md note.

Rollout order: each repository's CI gains merge_group first (issues filed for the enrolled repos), then rollout-merge-queue.sh … --apply. Snowcat's settings sweep will report the missing rule as drift until applied (its consumer-side schema bump is a separate Snowcat PR).

Risk tier

Risk tier: 2 — organization authority value change + apply script; dry-run by default, human-run.

Docs housekeeping

  • Cross-links: ADR-0042 ↔ organization README

Verification

npm run check — docs ok (56 docs, 398 links), organization ok, 11 tests pass; shellcheck scripts/rollout-merge-queue.sh clean.

🤖 Generated with Claude Code

Widen merge_queue to a boolean in schema v1, set it true in the contract and
fixture, have apply-repo-settings.sh add the merge_queue rule with the fixed
parameters, add scripts/rollout-merge-queue.sh to apply across repositories
(skipping any whose PR workflows lack a merge_group trigger), and run core's
own CI on merge_group.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bketelsen
bketelsen merged commit f6f5150 into main Aug 19, 2026
2 checks passed
@bketelsen
bketelsen deleted the snowcat/merge-queue-contract branch August 19, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant