fix: github_repo branches get created every apply

This commit is contained in:
Julian Tölle 2022-02-02 19:27:25 +01:00
parent e7fe0bbdf5
commit 81ac0669c0

View file

@ -110,6 +110,14 @@ resource "github_repository" "main" {
name = var.repository_name
visibility = var.repository_visibility
auto_init = true
lifecycle {
ignore_changes = [
# Ignored until this issue is resolved:
# https://github.com/integrations/terraform-provider-github/issues/1037
branches,
]
}
}
resource "github_branch_default" "main" {