-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathsuborgs.json
More file actions
373 lines (373 loc) · 12.7 KB
/
Copy pathsuborgs.json
File metadata and controls
373 lines (373 loc) · 12.7 KB
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Safe-settings suborg-level configuration",
"description": "Schema for .github/suborgs/*.yml — suborg-level safe-settings configuration. Defines which repos belong to the suborg and what settings to apply.",
"type": "object",
"properties": {
"suborgrepos": {
"type": "array",
"description": "Glob patterns matching repository names. Repos whose names match any pattern are included in this suborg.",
"items": {
"type": "string"
}
},
"suborgteams": {
"type": "array",
"description": "Team slugs. Repos that belong to any of these teams are included in this suborg.",
"items": {
"type": "string"
}
},
"suborgproperties": {
"type": "array",
"description": "Custom property filters. Repos with matching custom property values are included in this suborg.",
"items": {
"type": "object",
"properties": {
"property_name": {
"type": "string",
"description": "The name of the custom property"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Accepted values for this property"
}
}
}
},
"repositories": {
"$ref": "#/$defs/RepositorySettings"
},
"labels": {
"$ref": "#/$defs/LabelSettings"
},
"collaborators": {
"description": "Collaborators: give specific users access to any repository.",
"type": "array",
"items": {
"$ref": "#/$defs/CollaboratorSettings"
}
},
"teams": {
"description": "Teams",
"type": "array",
"items": {
"$ref": "#/$defs/TeamSettings"
}
},
"milestones": {
"description": "Milestones: define milestones for Issues and Pull Requests",
"type": "array",
"items": {
"$ref": "#/$defs/MilestoneSettings"
}
},
"branches": {
"description": "Branch protection rules",
"type": "array",
"items": {
"$ref": "#/$defs/BranchSettings"
}
},
"autolinks": {
"description": "Autolinks",
"type": "array",
"items": {
"$ref": "#/$defs/AutolinkSettings"
}
},
"validator": {
"$ref": "#/$defs/ValidatorSettings"
},
"rulesets": {
"description": "Repository rulesets applied to every repository in the suborg",
"type": "array",
"items": {
"$ref": "#/$defs/RulesetSettings"
}
},
"environments": {
"description": "Deployment environments",
"type": "array",
"items": {
"$ref": "#/$defs/EnvironmentsSettings"
}
},
"custom_properties": {
"description": "Custom properties",
"type": "array",
"items": {
"$ref": "#/$defs/CustomPropertiesSettings"
}
},
"variables": {
"description": "Repository or org-level Actions variables",
"type": "array",
"items": {
"$ref": "#/$defs/VariablesSettings"
}
}
},
"$defs": {
"RepositorySettings": {
"description": "Repository settings. Use force_create to create the repository if it does not exist, and template to specify a template repository to use when creating it.",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1repos~1{owner}~1{repo}/patch/requestBody/content/application~1json/schema"
},
{
"type": "object",
"properties": {
"auto_init": {
"description": "Create an initial commit with empty README. Keep this set to true in most cases since many of the policies below cannot be implemented on bare repos",
"type": "boolean"
},
"gitignore_template": {
"description": "Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, 'Haskell'.",
"type": "string"
},
"license_template": {
"description": "Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, 'mit' or 'mpl-2.0'.",
"type": "string"
},
"topics": {
"description": "A list of topics to set on the repository",
"type": "array",
"items": {
"type": "string"
}
},
"security": {
"description": "Settings for Code security and analysis",
"type": "object",
"properties": {
"enableVulnerabilityAlerts": {
"type": "boolean"
},
"enableAutomatedSecurityFixes": {
"type": "boolean"
}
}
},
"force_create": {
"description": "If true, create the repository if it does not already exist.",
"type": "boolean"
},
"template": {
"description": "Name of a template repository to use when creating a new repository.",
"type": "string"
}
}
}
]
},
"LabelSettings": {
"description": "Labels: define labels for Issues and Pull Requests",
"type": "object",
"properties": {
"include": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"color": {
"description": "The hexadecimal color code for the label. If including a `#`, make sure to wrap it with quotes!",
"type": "string"
},
"description": {
"type": "string"
},
"oldname": {
"description": "Include the old name to rename an existing label",
"type": "string"
}
}
}
},
"exclude": {
"description": "Ignore any labels matching these regexes (don't delete them)",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"CollaboratorSettings": {
"description": "A collaborator entry giving a specific user access to a repository.",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1repos~1{owner}~1{repo}~1collaborators~1{username}/put/requestBody/content/application~1json/schema"
},
{
"type": "object",
"properties": {
"username": {
"type": "string"
},
"exclude": {
"description": "You can exclude a list of repos for this collaborator and all repos except these repos would have this collaborator",
"type": "array",
"items": {
"type": "string"
}
},
"include": {
"description": "You can include a list of repos for this collaborator and only those repos would have this collaborator",
"type": "array",
"items": {
"type": "string"
}
}
}
}
]
},
"TeamSettings": {
"description": "A team entry",
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1orgs~1{org}~1teams/post/requestBody/content/application~1json/schema"
},
"MilestoneSettings": {
"description": "A milestone entry",
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"state": {
"description": "The state of the milestone. Either `open` or `closed`",
"type": "string"
}
}
},
"BranchSettings": {
"description": "A branch protection rule entry",
"type": "object",
"properties": {
"name": {
"description": "If the name of the branch value is specified as `default`, then the app will create a branch protection rule to apply against the default branch in the repo",
"type": "string"
},
"protection": {
"anyOf": [
{
"enum": [null, {}, [], false],
"description": "An empty value deletes the existing branch protection"
},
{
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1repos~1{owner}~1{repo}~1branches~1{branch}~1protection/put/requestBody/content/application~1json/schema"
}
]
}
}
},
"AutolinkSettings": {
"description": "An autolink reference entry",
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1repos~1{owner}~1{repo}~1autolinks/post/requestBody/content/application~1json/schema"
},
"ValidatorSettings": {
"description": "Repository name validation",
"type": "object",
"properties": {
"pattern": {
"type": "string"
}
}
},
"RulesetSettings": {
"description": "A repository ruleset entry",
"$ref": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.2026-03-10.json#/paths/~1repos~1{owner}~1{repo}~1rulesets/post/requestBody/content/application~1json/schema"
},
"EnvironmentsSettings": {
"description": "A deployment environment configuration entry",
"type": "object",
"required": ["name"],
"properties": {
"name": {
"description": "The name of the deployment environment",
"type": "string"
},
"wait_timer": {
"description": "The amount of time to delay a job after the job is initially triggered (in minutes)",
"type": "integer"
},
"reviewers": {
"description": "The people or teams that may review jobs that reference the environment",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "The type of reviewer (`User` or `Team`)",
"type": "string"
},
"id": {
"description": "The id of the user or team who can review the deployment",
"type": "integer"
}
}
}
},
"deployment_branch_policy": {
"description": "The type of deployment branch policy for this environment",
"type": "object",
"properties": {
"protected_branches": {
"description": "Whether only protected branches can be deployed to this environment",
"type": "boolean"
},
"custom_branch_policies": {
"description": "Whether only branches that match the specified name patterns can deploy to this environment",
"type": "boolean"
}
}
},
"prevent_self_review": {
"description": "Whether or not a user who created the job is prevented from approving their own job",
"type": "boolean"
}
}
},
"CustomPropertiesSettings": {
"description": "A custom property entry",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"VariablesSettings": {
"description": "An Actions variable entry",
"type": "object",
"required": ["name", "value"],
"properties": {
"name": {
"description": "The name of the variable",
"type": "string"
},
"value": {
"description": "The value of the variable",
"type": "string"
},
"visibility": {
"description": "The visibility of the variable. Can be `all`, `private`, or `selected`",
"type": "string",
"enum": ["all", "private", "selected"]
}
}
}
}
}