You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set to `false` to disable the automatic deletion of head branches after pull requests are merged.
151
-
Default is `true`
151
+
Default is `true`.
152
152
153
153
-**`homepage_url`**: _(Optional `string`)_
154
154
155
155
URL of a page describing the project.
156
-
Default is `""`
156
+
Default is `""`.
157
157
158
-
-**`private`**: _(Optional `bool`)_
158
+
-~`private`~: _(Optional `bool`)_
159
159
160
-
Set to false to create a public repository.
161
-
Default is `true`
160
+
DEPRICATED. Please use `visibility` instead and update your code. parameter will be removed in a future version
161
+
162
+
-**`visibility`**: _(Optional `string`)_
163
+
164
+
Can be `public` or `private`.
165
+
If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, `visibility` can also be `internal`.
166
+
The `visibility` parameter overrides the deprecated `private` parameter.
167
+
Default is `private`.
168
+
If the deprecated `private` boolean parameter is used, the default value is adjusted to respect this setting.
162
169
163
170
-**`has_issues`**: _(Optional `bool`)_
164
171
@@ -192,7 +199,7 @@ See [variables.tf] and [examples/] for details and use-cases.
192
199
after a correct reference has been created for the target branch inside the repository.
193
200
This means a user will have to omit this parameter from the initial repository creation and
194
201
create the target branch inside of the repository prior to setting this attribute.
195
-
Default is `""`
202
+
Default is `""`.
196
203
197
204
-**`archived`**: _(Optional `bool`)_
198
205
@@ -411,7 +418,7 @@ removed thislimitation.
411
418
This is a special argument to set various defaults to be reused for multiple repositories.
412
419
The following top-level arguments can be set as defaults:
Copy file name to clipboardExpand all lines: variables.tf
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ variable "defaults" {
28
28
# Example:
29
29
# defaults = {
30
30
# homepage_url = "https://mineiros.io/"
31
-
#private = true
31
+
#visibility= "private"
32
32
# has_issues = false
33
33
# has_projects = false
34
34
# has_wiki = false
@@ -60,11 +60,17 @@ variable "homepage_url" {
60
60
}
61
61
62
62
variable"private" {
63
-
description="Set to false to create a public repository. (Default: true)"
63
+
description="(DEPRECATED: use visibility)"
64
64
type=bool
65
65
default=null
66
66
}
67
67
68
+
variable"visibility" {
69
+
description="Can be 'public', 'private' or 'internal' (GHE only).The visibility parameter overrides the private parameter. Defaults to 'private' if neither private nor visibility are set, default to state of private parameter if it is set."
70
+
type=string
71
+
default=null
72
+
}
73
+
68
74
variable"has_issues" {
69
75
description="Set to true to enable the GitHub Issues features on the repository. (Default: false)"
0 commit comments