forked from rgreinho/terraform-github-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
124 lines (105 loc) · 3.25 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
variable "name" {
type = string
description = "The name of the repository."
}
variable "description" {
type = string
default = null
description = "A short description of the repository."
}
variable "homepage_url" {
type = string
default = null
description = "A URL with more information about the repository."
}
variable "private" {
type = bool
default = true
description = "Either `true` to create a private repository or `false` to create a public one."
}
variable "has_issues" {
type = bool
default = true
description = "Either `true` to enable issues for the repository or `false` to disable them."
}
variable "has_projects" {
type = bool
default = false
description = "Either `true` to enable projects for the repository or `false` to disable them."
}
variable "has_wiki" {
type = bool
default = false
description = "Either `true` to enable the wiki for the repository or `false` to disable it."
}
variable "auto_init" {
type = bool
default = false
description = "Pass `true` to create an initial commit with empty README."
}
variable "gitignore_template" {
type = string
default = null
description = "The name of a gitignore template without the extension. Example: `Terraform` or `VisualStudio`."
}
variable "license_template" {
type = string
default = null
description = "The name of a open source license templaet. Example: `mit` or `mpl-2.0`."
}
variable "allow_squash_merge" {
type = bool
default = true
description = "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging."
}
variable "allow_merge_commit" {
type = bool
default = true
description = "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits."
}
variable "allow_rebase_merge" {
type = bool
default = true
description = "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging."
}
variable "archived" {
type = bool
default = false
description = "Pass `true` to archive this repository. Note: You cannot unarchive repositories through the API."
}
variable "topics" {
type = list(string)
default = []
description = "A list of topics to add to the repository."
}
variable "default_branch" {
type = string
default = null
description = "Updates the default branch for the repository. This can only be set after a repository has been created."
}
variable "collaborators" {
type = list(object({
username = string
permission = string
}))
default = []
description = "Add users as collaborators on the repository."
}
variable "teams" {
type = list(object({
name = string
permission = string
}))
default = []
description = "Add the repository to a team or update teams permission on the repository."
}
variable "deploy_keys" {
type = any
default = []
description = "Add deploy keys (SSH keys) that grants access to the repository."
}
variable "branch_protection" {
type = any
default = []
description = "Configure branch protection on the repository."
}