Repository navigation
Manage every repository's default-branch ruleset - #3
Merged
Merged
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenTofu plan for
|
oskarbarcz
added a commit
that referenced
this pull request
Nov 10, 2026
The apply of #3 adopted the default-branch rulesets into state (9 imported, 1 added, 9 changed, 0 destroyed), and moved github-iac's own ruleset to `github_repository_ruleset.default_branch["github-iac"]`. The import blocks and the `moved` block are no longer needed, so `infra/imports.tf` goes. The plan on this PR should show no changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
The default-branch rulesets were made by hand, one repository at a time, and had drifted apart. Four of them still require the old matrix check names (
code (seatmap),code (layouts),code (pull),code (city)), which the flattened function repositories no longer report, so mypreflight/aerolopa-provider#14, mypreflight/osm-provider#12 and mypreflight/postcard-generator#14 can't merge. oceanic-tracks-provider had no ruleset at all.Every repository now gets the same
Main branch protectionruleset frominfra/rulesets.tf. The branch can't be deleted or force-pushed. Changes arrive through pull requests with every conversation resolved and only the merge methods the repository allows. The checks inrequired_checksmust pass, reported by GitHub Actions on a branch that is up to date.required_checksdefaults to[files, code]inconfig/repositories.yaml. github-iac sets[plan], product[markdownlint]and transponder-app[files, code, executable]..githubsetsbranch_protection: falseand stays unprotected, as it is today.infra/imports.tfadopts the nine existing rulesets, and amovedblock turns github-iac's "Require a passing plan" into its entry in the new resource. Only oceanic-tracks-provider's is created. The README describes the keys.What the apply changes
Main branch protection(product's wasmain, github-iac'sRequire a passing plan).filesandcodereplace the matrix checks.required_signatures, which only aerolopa-provider had.After merging
The apply makes the three function pull requests above mergeable. Then remove
infra/imports.tfin a follow-up, as in #1; its plan should show no changes.Verification
tofu fmt -checkandtofu validatepass.local.protected_repositorieslists the 11 repositories with the checks and merge methods above.🤖 Generated with Claude Code