diff --git a/main.tf b/main.tf index 83c650a..5bc1dba 100644 --- a/main.tf +++ b/main.tf @@ -12,9 +12,10 @@ resource "github_repository" "main" { allow_auto_merge = false delete_branch_on_merge = true - has_issues = var.support_issues - has_downloads = false - auto_init = true + has_issues = var.support_issues + has_discussions = var.support_discussions + has_downloads = false + auto_init = true vulnerability_alerts = true diff --git a/variables.tf b/variables.tf index 08b3c47..eaccc19 100644 --- a/variables.tf +++ b/variables.tf @@ -34,6 +34,10 @@ variable "support_issues" { default = true description = "Whether the project should allow issues" } +variable "support_discussions" { + default = false + description = "Whether the project should allow discussions" +} variable "pages_source_path" { default = null