Skip to content

Commit 9862efb

Browse files
morisilclaude
andcommitted
add is_template variable to repository module
Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 736d802 commit 9862efb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

repository/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "github_repository" "this" {
3232
allow_update_branch = true
3333
allow_forking = var.private ? false : true
3434
topics = var.topics
35+
is_template = var.is_template
3536
dynamic "pages" {
3637
for_each = var.pages_url != null ? [1] : []
3738
content {

repository/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ variable "dev_team_id" {
8484
type = string
8585
default = null
8686
}
87+
88+
variable "is_template" {
89+
description = "Set to `true` to make this repository available as a template repository"
90+
type = bool
91+
default = false
92+
}

0 commit comments

Comments
 (0)