From 80bc976cca693f420e5385502e5fca40417faf29 Mon Sep 17 00:00:00 2001 From: Gus Narea Date: Tue, 27 Jun 2023 10:46:31 +0100 Subject: [PATCH] feat: Make issues optional (#10) --- main.tf | 2 +- variables.tf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index bb78482..83c650a 100644 --- a/main.tf +++ b/main.tf @@ -12,7 +12,7 @@ resource "github_repository" "main" { allow_auto_merge = false delete_branch_on_merge = true - has_issues = true + has_issues = var.support_issues has_downloads = false auto_init = true diff --git a/variables.tf b/variables.tf index 8e41e93..08b3c47 100644 --- a/variables.tf +++ b/variables.tf @@ -30,6 +30,10 @@ variable "support_releases" { default = true description = "Whether the project uses Semantic Releases" } +variable "support_issues" { + default = true + description = "Whether the project should allow issues" +} variable "pages_source_path" { default = null