Skip to content

Commit 05ba1df

Browse files
authored
feat: initialize managed repositories
## Summary Enable `auto_init` for every centrally managed repository so a new repository receives an initial commit and `main` branch at creation time. ## Impact - New repositories can immediately receive branch protection and be bootstrapped through a normal scoped branch and pull request. - Existing repository content, secrets, SOPS data, workflows, and branch-protection settings are unchanged. ## Validation - Reviewed the secret-free diff: one change in `gh-repositories.tf`. - Verified against the GitHub provider documentation that `auto_init` creates an initial commit. - PR CI plan/checks are the validation authority.
1 parent e22ab07 commit 05ba1df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gh-repositories.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "github_repository" "repositories" {
33
name = each.key
44
archived = contains(local.archived_github_repositories, each.key)
55
visibility = var.github_visibility
6-
auto_init = each.key == "charts"
6+
auto_init = true
77
allow_squash_merge = true
88
allow_merge_commit = true
99
allow_rebase_merge = false

0 commit comments

Comments
 (0)