rename auto-init main to default_branch and reject invalid ruleset shapes
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

This commit is contained in:
2026-11-10 22:01:33 +11:00
parent d7359d1fc7
commit 23c315a49a
3 changed files with 76 additions and 0 deletions
+3
View File
@@ -117,6 +117,9 @@ resource "github_branch_default" "this" {
repository = github_repository.this[each.key].name
branch = each.value.default_branch
# auto_init only creates main; rename it instead of pointing at a missing branch
rename = true
wait_for_rename = true
}
resource "github_repository_collaborators" "this" {