rename auto-init main to default_branch and reject invalid ruleset shapes
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user