chore: manage GitHub merge requirements with Terraform - #17
Merged
Merged
Conversation
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.
What & why
The default branch's ruleset was disabled and referenced obsolete Bazel 8 check names, so the current CI matrix did not gate merges. Adopt the existing repository and
Mainruleset into Terraform, enable the ruleset without bypass actors, and require all 12 test jobs, four example jobs, docs, pre-commit, and conclusion. Required matrix check names are derived from the CI workflow.Enable GitHub's automatic deletion of merged PR head branches. Configure repository-local
fetch.pruneduring Codex setup and document the same command for other clones, so fetches remove stale remote-tracking references. Local working branches and worktrees are retained.The final CI gate now requires success from every prerequisite; failures, cancellations, skipped jobs, and missing results fail the gate. An e2e regression covers those cases. Terraform runs through a pinned Bazel-provided CLI, with a provider lockfile and state stored in the clone's shared Git directory so it survives worktree removal.
The settings were applied to GitHub after reviewing a plan with two imports, two in-place updates, and no creation or destruction. A follow-up plan reports no changes. The 19 required contexts match the jobs in the referenced CI run.
Checklist
bazel test //flutter/tests:all_tests //docs:update_testspasses (28 tests)cd e2e/smoke && bazel test //:integration_testspasses (24 targets)bazel run //docs:updateif any rule/macro API changed — not applicable; no rule/macro API changed, and the explicit docs gate passespre-commit run --all-filesis clean; also ran Bazel buildifier and Terraform fmt/validate