-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
193 lines (163 loc) · 4.33 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
variable "allow_auto_merge" {
default = false
description = "Whether to allow auto-merging pull requests"
type = bool
}
variable "allow_merge_commit" {
default = false
description = "Whether to allow merge commits"
type = bool
}
variable "allow_rebase_merge" {
default = true
description = "Whether to allow rebase merges"
type = bool
}
variable "allow_squash_merge" {
default = true
description = "Whether to allow squash merges"
type = bool
}
variable "description" {
description = "The description of the repository"
type = string
}
variable "dismiss_stale_reviews" {
default = true
description = "Whether to enable dismissing stale pull request reviews"
type = bool
}
variable "enable_pages" {
default = false
description = "Whether to enable GitHub Pages"
type = bool
}
variable "enforce_admins" {
default = false
description = "Whether to enforce branch protection for administrators"
type = bool
}
variable "gitignore_template" {
default = null
description = "The gitignore template of the repository"
type = string
}
variable "has_branch_protection" {
default = true
description = "Whether the repository has branch protection enabled"
type = bool
}
variable "has_discussions" {
default = false
description = "Whether the repository has discussions enabled"
type = bool
}
variable "has_issues" {
default = false
description = "Whether the repository has issues enabled"
type = bool
}
variable "has_projects" {
default = false
description = "Whether the repository has projects enabled"
type = bool
}
variable "has_wiki" {
default = false
description = "Whether the repository has wiki enabled"
type = bool
}
variable "homepage_url" {
default = null
description = "The URL of a page to use as the repository's home page"
type = string
}
variable "license_template" {
default = null
description = "Wheter the repository uses a license template"
type = string
}
variable "name" {
description = "The name of the repository"
type = string
}
variable "owner" {
description = "The owner of the repository"
type = string
}
variable "pages_branch" {
default = null
description = "The branch to use for GitHub Pages"
type = string
}
variable "pages_build_type" {
default = "workflow"
description = "The build type of the GitHub Pages"
type = string
}
variable "pages_cname" {
default = null
description = "The custom domain of the GitHub Pages"
type = string
}
variable "pages_path" {
default = null
description = "The path to the GitHub Pages content"
type = string
}
variable "required_approving_review_count" {
default = 0
description = "The number of approving reviews required to change code"
type = number
}
variable "required_status_checks_contexts" {
default = []
description = "The list of status checks to require in order to merge into this branch"
type = list(string)
}
variable "teams" {
default = {}
description = "The team ids to grant access to, and their permission levels"
type = map(string)
validation {
condition = alltrue([
for value in var.teams : contains(
[
// https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_repository#permission
"pull",
"triage",
"push",
"maintain",
"admin"
],
value
)
])
error_message = "Team permissions must be one of 'pull', 'triage', 'push', 'maintain', 'admin'."
}
}
variable "topics" {
description = "The topics of the repository"
default = []
type = list(string)
}
variable "visibility" {
default = "private"
description = "The visibility of the repository"
type = string
}
variable "vulnerability_alerts" {
default = false
description = "Whether the repository has vulnerability alerts enabled"
type = bool
}
variable "webhooks" {
default = {}
description = "Webhooks to configure for the repository"
type = map(object({
active = bool
events = list(string)
content_type = string
url = string
}))
}