Skip to content

Commit

Permalink
feat: Allow option to enable discussions (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Jul 28, 2023
1 parent 5f74139 commit 92dc329
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92dc329

Please sign in to comment.