Skip to content

chore: manage GitHub merge requirements with Terraform - #17

Merged
SpencerC merged 1 commit into
mainfrom
feature/github-repository-settings
Sep 8, 2026
Merged

SpencerC merged 1 commit into
mainfrom
feature/github-repository-settings

Conversation

@SpencerC

@SpencerC SpencerC commented Sep 8, 2026

Copy link
Copy Markdown
Owner

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 Main ruleset 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.prune during 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_tests passes (28 tests)
  • cd e2e/smoke && bazel test //:integration_tests passes (24 targets)
  • Ran bazel run //docs:update if any rule/macro API changed — not applicable; no rule/macro API changed, and the explicit docs gate passes
  • pre-commit run --all-files is clean; also ran Bazel buildifier and Terraform fmt/validate
  • Updated docs/README for user-facing changes (contributor guide and Terraform administration guide)

@SpencerC
SpencerC merged commit a0ca3df into main Sep 8, 2026
20 checks passed
@SpencerC
SpencerC deleted the feature/github-repository-settings branch September 8, 2026 15:41
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