Repository navigation
feat(settings): require a merge queue on the default branch (ADR-0042) - #100
Merged
Merged
Conversation
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]>
2 tasks done
2 tasks done
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
Implements ADR-0042:
organization/schemas/v1/repository-settings.schema.json:merge_queuewidenedconst false→boolean(compatible widening within v1, ADR-0039); contractv1.jsonand the valid fixture set ittrue.scripts/apply-repo-settings.sh: the default-branch ruleset gains themerge_queuerule when the contract wants it (SQUASH, ALLGREEN, max 5 built, 1–5 merged, no wait, 60-min timeout).scripts/rollout-merge-queue.sh <owner/repo>... [--apply] [--allow-missing-merge-group]: per repo, refuses when pull_request-triggered workflows lackmerge_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 onmerge_grouptoo.organization/README.mdnote.Rollout order: each repository's CI gains
merge_groupfirst (issues filed for the enrolled repos), thenrollout-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
Verification
npm run check— docs ok (56 docs, 398 links), organization ok, 11 tests pass;shellcheck scripts/rollout-merge-queue.shclean.🤖 Generated with Claude Code