From c62e4a438516178d00fb237ef7df28a1c209fe06 Mon Sep 17 00:00:00 2001 From: Ray Smets Date: Fri, 29 Nov 2024 10:27:45 -0800 Subject: [PATCH 1/3] [Template] resource usage updated to include branch definition. --- main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } } From cc549f8089aa41b57b3604dc653a6de1a25710f6 Mon Sep 17 00:00:00 2001 From: Ray Smets Date: Fri, 29 Nov 2024 10:41:47 -0800 Subject: [PATCH 2/3] version --- versions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } } } From 58bd6a76ba4eb5316f93f368c85121e2e28e91e0 Mon Sep 17 00:00:00 2001 From: Ray Smets Date: Fri, 29 Nov 2024 10:43:45 -0800 Subject: [PATCH 3/3] vars --- variables.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }