Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resource "github_repository" "self" {
allow_merge_commit = var.allow_merge_commit
allow_rebase_merge = var.allow_rebase_merge
allow_squash_merge = var.allow_squash_merge
archive_on_destroy = var.archive_on_destroy
auto_init = true
delete_branch_on_merge = true
description = var.description
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ variable "allow_squash_merge" {
type = bool
}

variable "archive_on_destroy" {
default = false
description = "Set to true to archive the repository instead of deleting on destroy"
type = bool
}

variable "description" {
description = "The description of the repository"
type = string
Expand Down