diff --git a/main.tf b/main.tf index 587e1bb6..1bf3865d 100644 --- a/main.tf +++ b/main.tf @@ -116,8 +116,9 @@ resource "github_repository" "repository" { for_each = local.template content { - owner = template.value.owner - repository = template.value.repository + owner = template.value.owner + repository = template.value.repository + include_all_branches = template.value.include_all_branches } } diff --git a/variables.tf b/variables.tf index 7599034c..12a4a0d2 100644 --- a/variables.tf +++ b/variables.tf @@ -170,8 +170,9 @@ variable "extra_topics" { variable "template" { description = "(Optional) Template repository to use. (Default: {})" type = object({ - owner = string - repository = string + owner = string + repository = string + include_all_branches = bool }) default = null } diff --git a/versions.tf b/versions.tf index 01e52ac3..0c87a044 100644 --- a/versions.tf +++ b/versions.tf @@ -9,7 +9,7 @@ terraform { required_providers { github = { source = "integrations/github" - version = ">= 4.20, < 6.0" + version = ">= 5.8, < 6.0" } } }