gitabu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +33 -0
  4. data/CHANGELOG.md +3 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +65 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +42 -0
  9. data/Rakefile +12 -0
  10. data/gitabu.gemspec +41 -0
  11. data/lib/gitabu/api/v3/actions.rb +3724 -0
  12. data/lib/gitabu/api/v3/activity.rb +835 -0
  13. data/lib/gitabu/api/v3/apps.rb +961 -0
  14. data/lib/gitabu/api/v3/billing.rb +217 -0
  15. data/lib/gitabu/api/v3/branches.rb +1098 -0
  16. data/lib/gitabu/api/v3/checks.rb +384 -0
  17. data/lib/gitabu/api/v3/code_scanning.rb +315 -0
  18. data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
  19. data/lib/gitabu/api/v3/codespaces.rb +650 -0
  20. data/lib/gitabu/api/v3/collaborators.rb +341 -0
  21. data/lib/gitabu/api/v3/commits.rb +428 -0
  22. data/lib/gitabu/api/v3/dependabot.rb +419 -0
  23. data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
  24. data/lib/gitabu/api/v3/deployments.rb +356 -0
  25. data/lib/gitabu/api/v3/emojis.rb +67 -0
  26. data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
  27. data/lib/gitabu/api/v3/gists.rb +552 -0
  28. data/lib/gitabu/api/v3/git.rb +409 -0
  29. data/lib/gitabu/api/v3/gitignore.rb +92 -0
  30. data/lib/gitabu/api/v3/interactions.rb +275 -0
  31. data/lib/gitabu/api/v3/issues.rb +1119 -0
  32. data/lib/gitabu/api/v3/licenses.rb +118 -0
  33. data/lib/gitabu/api/v3/markdown.rb +94 -0
  34. data/lib/gitabu/api/v3/meta.rb +142 -0
  35. data/lib/gitabu/api/v3/metrics.rb +302 -0
  36. data/lib/gitabu/api/v3/migrations.rb +631 -0
  37. data/lib/gitabu/api/v3/orgs.rb +1291 -0
  38. data/lib/gitabu/api/v3/packages.rb +686 -0
  39. data/lib/gitabu/api/v3/pages.rb +282 -0
  40. data/lib/gitabu/api/v3/projects.rb +693 -0
  41. data/lib/gitabu/api/v3/pulls.rb +816 -0
  42. data/lib/gitabu/api/v3/rate_limit.rb +67 -0
  43. data/lib/gitabu/api/v3/reactions.rb +734 -0
  44. data/lib/gitabu/api/v3/releases.rb +411 -0
  45. data/lib/gitabu/api/v3/repos.rb +1136 -0
  46. data/lib/gitabu/api/v3/scim.rb +214 -0
  47. data/lib/gitabu/api/v3/search.rb +217 -0
  48. data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
  49. data/lib/gitabu/api/v3/teams.rb +1963 -0
  50. data/lib/gitabu/api/v3/users.rb +851 -0
  51. data/lib/gitabu/api/v3/webhooks.rb +379 -0
  52. data/lib/gitabu/builder.rb +37 -0
  53. data/lib/gitabu/client.rb +8 -0
  54. data/lib/gitabu/generator.rb +75 -0
  55. data/lib/gitabu/http_client.rb +96 -0
  56. data/lib/gitabu/items.rb +110 -0
  57. data/lib/gitabu/public/api/v3/actions.json +5779 -0
  58. data/lib/gitabu/public/api/v3/activity.json +1248 -0
  59. data/lib/gitabu/public/api/v3/apps.json +1174 -0
  60. data/lib/gitabu/public/api/v3/billing.json +183 -0
  61. data/lib/gitabu/public/api/v3/branches.json +1886 -0
  62. data/lib/gitabu/public/api/v3/checks.json +856 -0
  63. data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
  64. data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
  65. data/lib/gitabu/public/api/v3/codespaces.json +884 -0
  66. data/lib/gitabu/public/api/v3/collaborators.json +464 -0
  67. data/lib/gitabu/public/api/v3/commits.json +830 -0
  68. data/lib/gitabu/public/api/v3/dependabot.json +596 -0
  69. data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
  70. data/lib/gitabu/public/api/v3/deployments.json +698 -0
  71. data/lib/gitabu/public/api/v3/emojis.json +18 -0
  72. data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
  73. data/lib/gitabu/public/api/v3/gists.json +689 -0
  74. data/lib/gitabu/public/api/v3/git.json +735 -0
  75. data/lib/gitabu/public/api/v3/gitignore.json +41 -0
  76. data/lib/gitabu/public/api/v3/interactions.json +265 -0
  77. data/lib/gitabu/public/api/v3/issues.json +2359 -0
  78. data/lib/gitabu/public/api/v3/licenses.json +100 -0
  79. data/lib/gitabu/public/api/v3/markdown.json +59 -0
  80. data/lib/gitabu/public/api/v3/meta.json +69 -0
  81. data/lib/gitabu/public/api/v3/metrics.json +342 -0
  82. data/lib/gitabu/public/api/v3/migrations.json +960 -0
  83. data/lib/gitabu/public/api/v3/orgs.json +1989 -0
  84. data/lib/gitabu/public/api/v3/packages.json +1078 -0
  85. data/lib/gitabu/public/api/v3/pages.json +373 -0
  86. data/lib/gitabu/public/api/v3/projects.json +966 -0
  87. data/lib/gitabu/public/api/v3/pulls.json +1768 -0
  88. data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
  89. data/lib/gitabu/public/api/v3/reactions.json +1425 -0
  90. data/lib/gitabu/public/api/v3/releases.json +753 -0
  91. data/lib/gitabu/public/api/v3/repos.json +2314 -0
  92. data/lib/gitabu/public/api/v3/scim.json +412 -0
  93. data/lib/gitabu/public/api/v3/search.json +408 -0
  94. data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
  95. data/lib/gitabu/public/api/v3/teams.json +3126 -0
  96. data/lib/gitabu/public/api/v3/users.json +956 -0
  97. data/lib/gitabu/public/api/v3/webhooks.json +667 -0
  98. data/lib/gitabu/run.rb +237 -0
  99. data/lib/gitabu/scraper.rb +86 -0
  100. data/lib/gitabu/templates/template.rb.erb +70 -0
  101. data/lib/gitabu/version.rb +6 -0
  102. data/lib/gitabu.rb +57 -0
  103. data/sig/gitabu.rbs +4 -0
  104. metadata +177 -0
@@ -0,0 +1,1886 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List branches",
5
+ "method": "get",
6
+ "endpoint": "/repos/{owner}/{repo}/branches",
7
+ "field_0": {
8
+ "field_type": "header",
9
+ "fields": {
10
+ "name": "accept",
11
+ "type": "string",
12
+ "in": "header",
13
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
14
+ }
15
+ },
16
+ "field_1": {
17
+ "field_type": "path",
18
+ "fields": {
19
+ "name": "owner",
20
+ "type": "string",
21
+ "in": "path",
22
+ "description": ""
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "path",
27
+ "fields": {
28
+ "name": "repo",
29
+ "type": "string",
30
+ "in": "path",
31
+ "description": ""
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "protected",
38
+ "type": "boolean",
39
+ "in": "query",
40
+ "description": "Setting to true returns only protected branches. When set to false, only unprotected branches are returned. Omitting this parameter returns all branches."
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "per_page",
47
+ "type": "integer",
48
+ "in": "query",
49
+ "description": "Results per page (max 100)Default: 30"
50
+ }
51
+ },
52
+ "field_5": {
53
+ "field_type": "query",
54
+ "fields": {
55
+ "name": "page",
56
+ "type": "integer",
57
+ "in": "query",
58
+ "description": "Page number of the results to fetch.Default: 1"
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "namespace_description": "Get a branch",
64
+ "method": "get",
65
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}",
66
+ "field_0": {
67
+ "field_type": "header",
68
+ "fields": {
69
+ "name": "accept",
70
+ "type": "string",
71
+ "in": "header",
72
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
73
+ }
74
+ },
75
+ "field_1": {
76
+ "field_type": "path",
77
+ "fields": {
78
+ "name": "owner",
79
+ "type": "string",
80
+ "in": "path",
81
+ "description": ""
82
+ }
83
+ },
84
+ "field_2": {
85
+ "field_type": "path",
86
+ "fields": {
87
+ "name": "repo",
88
+ "type": "string",
89
+ "in": "path",
90
+ "description": ""
91
+ }
92
+ },
93
+ "field_3": {
94
+ "field_type": "path",
95
+ "fields": {
96
+ "name": "branch",
97
+ "type": "string",
98
+ "in": "path",
99
+ "description": "The name of the branch."
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "namespace_description": "Rename a branch",
105
+ "method": "post",
106
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/rename",
107
+ "field_0": {
108
+ "field_type": "header",
109
+ "fields": {
110
+ "name": "accept",
111
+ "type": "string",
112
+ "in": "header",
113
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
114
+ }
115
+ },
116
+ "field_1": {
117
+ "field_type": "path",
118
+ "fields": {
119
+ "name": "owner",
120
+ "type": "string",
121
+ "in": "path",
122
+ "description": ""
123
+ }
124
+ },
125
+ "field_2": {
126
+ "field_type": "path",
127
+ "fields": {
128
+ "name": "repo",
129
+ "type": "string",
130
+ "in": "path",
131
+ "description": ""
132
+ }
133
+ },
134
+ "field_3": {
135
+ "field_type": "path",
136
+ "fields": {
137
+ "name": "branch",
138
+ "type": "string",
139
+ "in": "path",
140
+ "description": "The name of the branch."
141
+ }
142
+ },
143
+ "field_4": {
144
+ "field_type": "body",
145
+ "fields": {
146
+ "name": "new_name",
147
+ "type": "string",
148
+ "in": "body",
149
+ "description": "Required. The new name of the branch."
150
+ }
151
+ }
152
+ },
153
+ {
154
+ "namespace_description": "Sync a fork branch with the upstream repository",
155
+ "method": "post",
156
+ "endpoint": "/repos/{owner}/{repo}/merge-upstream",
157
+ "field_0": {
158
+ "field_type": "header",
159
+ "fields": {
160
+ "name": "accept",
161
+ "type": "string",
162
+ "in": "header",
163
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
164
+ }
165
+ },
166
+ "field_1": {
167
+ "field_type": "path",
168
+ "fields": {
169
+ "name": "owner",
170
+ "type": "string",
171
+ "in": "path",
172
+ "description": ""
173
+ }
174
+ },
175
+ "field_2": {
176
+ "field_type": "path",
177
+ "fields": {
178
+ "name": "repo",
179
+ "type": "string",
180
+ "in": "path",
181
+ "description": ""
182
+ }
183
+ },
184
+ "field_3": {
185
+ "field_type": "body",
186
+ "fields": {
187
+ "name": "branch",
188
+ "type": "string",
189
+ "in": "body",
190
+ "description": "Required. The name of the branch which should be updated to match upstream."
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "namespace_description": "Merge a branch",
196
+ "method": "post",
197
+ "endpoint": "/repos/{owner}/{repo}/merges",
198
+ "field_0": {
199
+ "field_type": "header",
200
+ "fields": {
201
+ "name": "accept",
202
+ "type": "string",
203
+ "in": "header",
204
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
205
+ }
206
+ },
207
+ "field_1": {
208
+ "field_type": "path",
209
+ "fields": {
210
+ "name": "owner",
211
+ "type": "string",
212
+ "in": "path",
213
+ "description": ""
214
+ }
215
+ },
216
+ "field_2": {
217
+ "field_type": "path",
218
+ "fields": {
219
+ "name": "repo",
220
+ "type": "string",
221
+ "in": "path",
222
+ "description": ""
223
+ }
224
+ },
225
+ "field_3": {
226
+ "field_type": "body",
227
+ "fields": {
228
+ "name": "base",
229
+ "type": "string",
230
+ "in": "body",
231
+ "description": "Required. The name of the base branch that the head will be merged into."
232
+ }
233
+ },
234
+ "field_4": {
235
+ "field_type": "body",
236
+ "fields": {
237
+ "name": "head",
238
+ "type": "string",
239
+ "in": "body",
240
+ "description": "Required. The head to merge. This can be a branch name or a commit SHA1."
241
+ }
242
+ },
243
+ "field_5": {
244
+ "field_type": "body",
245
+ "fields": {
246
+ "name": "commit_message",
247
+ "type": "string",
248
+ "in": "body",
249
+ "description": "Commit message to use for the merge commit. If omitted, a default message will be used."
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "namespace_description": "Get branch protection",
255
+ "method": "get",
256
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection",
257
+ "field_0": {
258
+ "field_type": "header",
259
+ "fields": {
260
+ "name": "accept",
261
+ "type": "string",
262
+ "in": "header",
263
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
264
+ }
265
+ },
266
+ "field_1": {
267
+ "field_type": "path",
268
+ "fields": {
269
+ "name": "owner",
270
+ "type": "string",
271
+ "in": "path",
272
+ "description": ""
273
+ }
274
+ },
275
+ "field_2": {
276
+ "field_type": "path",
277
+ "fields": {
278
+ "name": "repo",
279
+ "type": "string",
280
+ "in": "path",
281
+ "description": ""
282
+ }
283
+ },
284
+ "field_3": {
285
+ "field_type": "path",
286
+ "fields": {
287
+ "name": "branch",
288
+ "type": "string",
289
+ "in": "path",
290
+ "description": "The name of the branch."
291
+ }
292
+ }
293
+ },
294
+ {
295
+ "namespace_description": "Update branch protection",
296
+ "method": "put",
297
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection",
298
+ "field_0": {
299
+ "field_type": "header",
300
+ "fields": {
301
+ "name": "accept",
302
+ "type": "string",
303
+ "in": "header",
304
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
305
+ }
306
+ },
307
+ "field_1": {
308
+ "field_type": "path",
309
+ "fields": {
310
+ "name": "owner",
311
+ "type": "string",
312
+ "in": "path",
313
+ "description": ""
314
+ }
315
+ },
316
+ "field_2": {
317
+ "field_type": "path",
318
+ "fields": {
319
+ "name": "repo",
320
+ "type": "string",
321
+ "in": "path",
322
+ "description": ""
323
+ }
324
+ },
325
+ "field_3": {
326
+ "field_type": "path",
327
+ "fields": {
328
+ "name": "branch",
329
+ "type": "string",
330
+ "in": "path",
331
+ "description": "The name of the branch."
332
+ }
333
+ },
334
+ "field_4": {
335
+ "field_type": "body",
336
+ "fields": {
337
+ "name": "required_status_checks",
338
+ "type": "object or null",
339
+ "in": "body",
340
+ "description": "Required. Require status checks to pass before merging. Set to null to disable."
341
+ }
342
+ },
343
+ "field_5": {
344
+ "field_type": "body",
345
+ "fields": {
346
+ "name": "enforce_admins",
347
+ "type": "boolean or null",
348
+ "in": "body",
349
+ "description": "Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable."
350
+ }
351
+ },
352
+ "field_6": {
353
+ "field_type": "body",
354
+ "fields": {
355
+ "name": "required_pull_request_reviews",
356
+ "type": "object or null",
357
+ "in": "body",
358
+ "description": "Required. Require at least one approving review on a pull request, before merging. Set to null to disable."
359
+ }
360
+ },
361
+ "field_7": {
362
+ "field_type": "body",
363
+ "fields": {
364
+ "name": "restrictions",
365
+ "type": "object or null",
366
+ "in": "body",
367
+ "description": "Required. Restrict who can push to the protected branch. User, app, and team restrictions are only available for organization-owned repositories. Set to null to disable."
368
+ }
369
+ },
370
+ "field_8": {
371
+ "field_type": "body",
372
+ "fields": {
373
+ "name": "required_linear_history",
374
+ "type": "boolean",
375
+ "in": "body",
376
+ "description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to true to enforce a linear commit history. Set to false to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: false. For more information, see \"Requiring a linear commit history\" in the GitHub Help documentation."
377
+ }
378
+ },
379
+ "field_9": {
380
+ "field_type": "body",
381
+ "fields": {
382
+ "name": "allow_force_pushes",
383
+ "type": "boolean or null",
384
+ "in": "body",
385
+ "description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to true to allow force pushes. Set to false or null to block force pushes. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation.\""
386
+ }
387
+ },
388
+ "field_10": {
389
+ "field_type": "body",
390
+ "fields": {
391
+ "name": "allow_deletions",
392
+ "type": "boolean",
393
+ "in": "body",
394
+ "description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to false to prevent deletion of the protected branch. Default: false. For more information, see \"Enabling force pushes to a protected branch\" in the GitHub Help documentation."
395
+ }
396
+ },
397
+ "field_11": {
398
+ "field_type": "body",
399
+ "fields": {
400
+ "name": "required_conversation_resolution",
401
+ "type": "boolean",
402
+ "in": "body",
403
+ "description": "Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to false to disable. Default: false."
404
+ }
405
+ }
406
+ },
407
+ {
408
+ "namespace_description": "Delete branch protection",
409
+ "method": "delete",
410
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection",
411
+ "field_0": {
412
+ "field_type": "header",
413
+ "fields": {
414
+ "name": "accept",
415
+ "type": "string",
416
+ "in": "header",
417
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
418
+ }
419
+ },
420
+ "field_1": {
421
+ "field_type": "path",
422
+ "fields": {
423
+ "name": "owner",
424
+ "type": "string",
425
+ "in": "path",
426
+ "description": ""
427
+ }
428
+ },
429
+ "field_2": {
430
+ "field_type": "path",
431
+ "fields": {
432
+ "name": "repo",
433
+ "type": "string",
434
+ "in": "path",
435
+ "description": ""
436
+ }
437
+ },
438
+ "field_3": {
439
+ "field_type": "path",
440
+ "fields": {
441
+ "name": "branch",
442
+ "type": "string",
443
+ "in": "path",
444
+ "description": "The name of the branch."
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "namespace_description": "Get admin branch protection",
450
+ "method": "get",
451
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
452
+ "field_0": {
453
+ "field_type": "header",
454
+ "fields": {
455
+ "name": "accept",
456
+ "type": "string",
457
+ "in": "header",
458
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
459
+ }
460
+ },
461
+ "field_1": {
462
+ "field_type": "path",
463
+ "fields": {
464
+ "name": "owner",
465
+ "type": "string",
466
+ "in": "path",
467
+ "description": ""
468
+ }
469
+ },
470
+ "field_2": {
471
+ "field_type": "path",
472
+ "fields": {
473
+ "name": "repo",
474
+ "type": "string",
475
+ "in": "path",
476
+ "description": ""
477
+ }
478
+ },
479
+ "field_3": {
480
+ "field_type": "path",
481
+ "fields": {
482
+ "name": "branch",
483
+ "type": "string",
484
+ "in": "path",
485
+ "description": "The name of the branch."
486
+ }
487
+ }
488
+ },
489
+ {
490
+ "namespace_description": "Set admin branch protection",
491
+ "method": "post",
492
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
493
+ "field_0": {
494
+ "field_type": "header",
495
+ "fields": {
496
+ "name": "accept",
497
+ "type": "string",
498
+ "in": "header",
499
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
500
+ }
501
+ },
502
+ "field_1": {
503
+ "field_type": "path",
504
+ "fields": {
505
+ "name": "owner",
506
+ "type": "string",
507
+ "in": "path",
508
+ "description": ""
509
+ }
510
+ },
511
+ "field_2": {
512
+ "field_type": "path",
513
+ "fields": {
514
+ "name": "repo",
515
+ "type": "string",
516
+ "in": "path",
517
+ "description": ""
518
+ }
519
+ },
520
+ "field_3": {
521
+ "field_type": "path",
522
+ "fields": {
523
+ "name": "branch",
524
+ "type": "string",
525
+ "in": "path",
526
+ "description": "The name of the branch."
527
+ }
528
+ }
529
+ },
530
+ {
531
+ "namespace_description": "Delete admin branch protection",
532
+ "method": "delete",
533
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
534
+ "field_0": {
535
+ "field_type": "header",
536
+ "fields": {
537
+ "name": "accept",
538
+ "type": "string",
539
+ "in": "header",
540
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
541
+ }
542
+ },
543
+ "field_1": {
544
+ "field_type": "path",
545
+ "fields": {
546
+ "name": "owner",
547
+ "type": "string",
548
+ "in": "path",
549
+ "description": ""
550
+ }
551
+ },
552
+ "field_2": {
553
+ "field_type": "path",
554
+ "fields": {
555
+ "name": "repo",
556
+ "type": "string",
557
+ "in": "path",
558
+ "description": ""
559
+ }
560
+ },
561
+ "field_3": {
562
+ "field_type": "path",
563
+ "fields": {
564
+ "name": "branch",
565
+ "type": "string",
566
+ "in": "path",
567
+ "description": "The name of the branch."
568
+ }
569
+ }
570
+ },
571
+ {
572
+ "namespace_description": "Get pull request review protection",
573
+ "method": "get",
574
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
575
+ "field_0": {
576
+ "field_type": "header",
577
+ "fields": {
578
+ "name": "accept",
579
+ "type": "string",
580
+ "in": "header",
581
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
582
+ }
583
+ },
584
+ "field_1": {
585
+ "field_type": "path",
586
+ "fields": {
587
+ "name": "owner",
588
+ "type": "string",
589
+ "in": "path",
590
+ "description": ""
591
+ }
592
+ },
593
+ "field_2": {
594
+ "field_type": "path",
595
+ "fields": {
596
+ "name": "repo",
597
+ "type": "string",
598
+ "in": "path",
599
+ "description": ""
600
+ }
601
+ },
602
+ "field_3": {
603
+ "field_type": "path",
604
+ "fields": {
605
+ "name": "branch",
606
+ "type": "string",
607
+ "in": "path",
608
+ "description": "The name of the branch."
609
+ }
610
+ }
611
+ },
612
+ {
613
+ "namespace_description": "Update pull request review protection",
614
+ "method": "patch",
615
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
616
+ "field_0": {
617
+ "field_type": "header",
618
+ "fields": {
619
+ "name": "accept",
620
+ "type": "string",
621
+ "in": "header",
622
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
623
+ }
624
+ },
625
+ "field_1": {
626
+ "field_type": "path",
627
+ "fields": {
628
+ "name": "owner",
629
+ "type": "string",
630
+ "in": "path",
631
+ "description": ""
632
+ }
633
+ },
634
+ "field_2": {
635
+ "field_type": "path",
636
+ "fields": {
637
+ "name": "repo",
638
+ "type": "string",
639
+ "in": "path",
640
+ "description": ""
641
+ }
642
+ },
643
+ "field_3": {
644
+ "field_type": "path",
645
+ "fields": {
646
+ "name": "branch",
647
+ "type": "string",
648
+ "in": "path",
649
+ "description": "The name of the branch."
650
+ }
651
+ },
652
+ "field_4": {
653
+ "field_type": "body",
654
+ "fields": {
655
+ "name": "dismissal_restrictions",
656
+ "type": "object",
657
+ "in": "body",
658
+ "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories."
659
+ }
660
+ },
661
+ "field_5": {
662
+ "field_type": null,
663
+ "fields": {
664
+ "name": "Properties of thedismissal_restrictionsobjectName (Type)Descriptionusers (array of strings)The list of user logins with dismissal accessteams (array of strings)The list of team slugs with dismissal access",
665
+ "type": null,
666
+ "in": null,
667
+ "description": null
668
+ }
669
+ },
670
+ "field_6": {
671
+ "field_type": "body",
672
+ "fields": {
673
+ "name": "dismiss_stale_reviews",
674
+ "type": "boolean",
675
+ "in": "body",
676
+ "description": "Set to true if you want to automatically dismiss approving reviews when someone pushes a new commit."
677
+ }
678
+ },
679
+ "field_7": {
680
+ "field_type": "body",
681
+ "fields": {
682
+ "name": "require_code_owner_reviews",
683
+ "type": "boolean",
684
+ "in": "body",
685
+ "description": "Blocks merging pull requests until code owners have reviewed."
686
+ }
687
+ },
688
+ "field_8": {
689
+ "field_type": "body",
690
+ "fields": {
691
+ "name": "required_approving_review_count",
692
+ "type": "integer",
693
+ "in": "body",
694
+ "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers."
695
+ }
696
+ },
697
+ "field_9": {
698
+ "field_type": "body",
699
+ "fields": {
700
+ "name": "bypass_pull_request_allowances",
701
+ "type": "object",
702
+ "in": "body",
703
+ "description": "Allow specific users or teams to bypass pull request requirements."
704
+ }
705
+ },
706
+ "field_10": {
707
+ "field_type": null,
708
+ "fields": {
709
+ "name": "Properties of thebypass_pull_request_allowancesobjectName (Type)Descriptionusers (array of strings)The list of user logins allowed to bypass pull request requirements.teams (array of strings)The list of team slugs allowed to bypass pull request requirements.",
710
+ "type": null,
711
+ "in": null,
712
+ "description": null
713
+ }
714
+ }
715
+ },
716
+ {
717
+ "namespace_description": "Delete pull request review protection",
718
+ "method": "delete",
719
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
720
+ "field_0": {
721
+ "field_type": "header",
722
+ "fields": {
723
+ "name": "accept",
724
+ "type": "string",
725
+ "in": "header",
726
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
727
+ }
728
+ },
729
+ "field_1": {
730
+ "field_type": "path",
731
+ "fields": {
732
+ "name": "owner",
733
+ "type": "string",
734
+ "in": "path",
735
+ "description": ""
736
+ }
737
+ },
738
+ "field_2": {
739
+ "field_type": "path",
740
+ "fields": {
741
+ "name": "repo",
742
+ "type": "string",
743
+ "in": "path",
744
+ "description": ""
745
+ }
746
+ },
747
+ "field_3": {
748
+ "field_type": "path",
749
+ "fields": {
750
+ "name": "branch",
751
+ "type": "string",
752
+ "in": "path",
753
+ "description": "The name of the branch."
754
+ }
755
+ }
756
+ },
757
+ {
758
+ "namespace_description": "Get commit signature protection",
759
+ "method": "get",
760
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
761
+ "field_0": {
762
+ "field_type": "header",
763
+ "fields": {
764
+ "name": "accept",
765
+ "type": "string",
766
+ "in": "header",
767
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
768
+ }
769
+ },
770
+ "field_1": {
771
+ "field_type": "path",
772
+ "fields": {
773
+ "name": "owner",
774
+ "type": "string",
775
+ "in": "path",
776
+ "description": ""
777
+ }
778
+ },
779
+ "field_2": {
780
+ "field_type": "path",
781
+ "fields": {
782
+ "name": "repo",
783
+ "type": "string",
784
+ "in": "path",
785
+ "description": ""
786
+ }
787
+ },
788
+ "field_3": {
789
+ "field_type": "path",
790
+ "fields": {
791
+ "name": "branch",
792
+ "type": "string",
793
+ "in": "path",
794
+ "description": "The name of the branch."
795
+ }
796
+ }
797
+ },
798
+ {
799
+ "namespace_description": "Create commit signature protection",
800
+ "method": "post",
801
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
802
+ "field_0": {
803
+ "field_type": "header",
804
+ "fields": {
805
+ "name": "accept",
806
+ "type": "string",
807
+ "in": "header",
808
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
809
+ }
810
+ },
811
+ "field_1": {
812
+ "field_type": "path",
813
+ "fields": {
814
+ "name": "owner",
815
+ "type": "string",
816
+ "in": "path",
817
+ "description": ""
818
+ }
819
+ },
820
+ "field_2": {
821
+ "field_type": "path",
822
+ "fields": {
823
+ "name": "repo",
824
+ "type": "string",
825
+ "in": "path",
826
+ "description": ""
827
+ }
828
+ },
829
+ "field_3": {
830
+ "field_type": "path",
831
+ "fields": {
832
+ "name": "branch",
833
+ "type": "string",
834
+ "in": "path",
835
+ "description": "The name of the branch."
836
+ }
837
+ }
838
+ },
839
+ {
840
+ "namespace_description": "Delete commit signature protection",
841
+ "method": "delete",
842
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
843
+ "field_0": {
844
+ "field_type": "header",
845
+ "fields": {
846
+ "name": "accept",
847
+ "type": "string",
848
+ "in": "header",
849
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
850
+ }
851
+ },
852
+ "field_1": {
853
+ "field_type": "path",
854
+ "fields": {
855
+ "name": "owner",
856
+ "type": "string",
857
+ "in": "path",
858
+ "description": ""
859
+ }
860
+ },
861
+ "field_2": {
862
+ "field_type": "path",
863
+ "fields": {
864
+ "name": "repo",
865
+ "type": "string",
866
+ "in": "path",
867
+ "description": ""
868
+ }
869
+ },
870
+ "field_3": {
871
+ "field_type": "path",
872
+ "fields": {
873
+ "name": "branch",
874
+ "type": "string",
875
+ "in": "path",
876
+ "description": "The name of the branch."
877
+ }
878
+ }
879
+ },
880
+ {
881
+ "namespace_description": "Get status checks protection",
882
+ "method": "get",
883
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
884
+ "field_0": {
885
+ "field_type": "header",
886
+ "fields": {
887
+ "name": "accept",
888
+ "type": "string",
889
+ "in": "header",
890
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
891
+ }
892
+ },
893
+ "field_1": {
894
+ "field_type": "path",
895
+ "fields": {
896
+ "name": "owner",
897
+ "type": "string",
898
+ "in": "path",
899
+ "description": ""
900
+ }
901
+ },
902
+ "field_2": {
903
+ "field_type": "path",
904
+ "fields": {
905
+ "name": "repo",
906
+ "type": "string",
907
+ "in": "path",
908
+ "description": ""
909
+ }
910
+ },
911
+ "field_3": {
912
+ "field_type": "path",
913
+ "fields": {
914
+ "name": "branch",
915
+ "type": "string",
916
+ "in": "path",
917
+ "description": "The name of the branch."
918
+ }
919
+ }
920
+ },
921
+ {
922
+ "namespace_description": "Update status check protection",
923
+ "method": "patch",
924
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
925
+ "field_0": {
926
+ "field_type": "header",
927
+ "fields": {
928
+ "name": "accept",
929
+ "type": "string",
930
+ "in": "header",
931
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
932
+ }
933
+ },
934
+ "field_1": {
935
+ "field_type": "path",
936
+ "fields": {
937
+ "name": "owner",
938
+ "type": "string",
939
+ "in": "path",
940
+ "description": ""
941
+ }
942
+ },
943
+ "field_2": {
944
+ "field_type": "path",
945
+ "fields": {
946
+ "name": "repo",
947
+ "type": "string",
948
+ "in": "path",
949
+ "description": ""
950
+ }
951
+ },
952
+ "field_3": {
953
+ "field_type": "path",
954
+ "fields": {
955
+ "name": "branch",
956
+ "type": "string",
957
+ "in": "path",
958
+ "description": "The name of the branch."
959
+ }
960
+ },
961
+ "field_4": {
962
+ "field_type": "body",
963
+ "fields": {
964
+ "name": "strict",
965
+ "type": "boolean",
966
+ "in": "body",
967
+ "description": "Require branches to be up to date before merging."
968
+ }
969
+ },
970
+ "field_5": {
971
+ "field_type": "body",
972
+ "fields": {
973
+ "name": "contexts",
974
+ "type": "array of strings",
975
+ "in": "body",
976
+ "description": "Deprecated: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use checks instead of contexts for more fine-grained control."
977
+ }
978
+ },
979
+ "field_6": {
980
+ "field_type": "body",
981
+ "fields": {
982
+ "name": "checks",
983
+ "type": "array of objects",
984
+ "in": "body",
985
+ "description": "The list of status checks to require in order to merge into this branch."
986
+ }
987
+ },
988
+ "field_7": {
989
+ "field_type": null,
990
+ "fields": {
991
+ "name": "Properties of thechecksitemsName (Type)Descriptioncontext (string)Required. The name of the required checkapp_id (integer)The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.",
992
+ "type": null,
993
+ "in": null,
994
+ "description": null
995
+ }
996
+ }
997
+ },
998
+ {
999
+ "namespace_description": "Remove status check protection",
1000
+ "method": "delete",
1001
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
1002
+ "field_0": {
1003
+ "field_type": "header",
1004
+ "fields": {
1005
+ "name": "accept",
1006
+ "type": "string",
1007
+ "in": "header",
1008
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1009
+ }
1010
+ },
1011
+ "field_1": {
1012
+ "field_type": "path",
1013
+ "fields": {
1014
+ "name": "owner",
1015
+ "type": "string",
1016
+ "in": "path",
1017
+ "description": ""
1018
+ }
1019
+ },
1020
+ "field_2": {
1021
+ "field_type": "path",
1022
+ "fields": {
1023
+ "name": "repo",
1024
+ "type": "string",
1025
+ "in": "path",
1026
+ "description": ""
1027
+ }
1028
+ },
1029
+ "field_3": {
1030
+ "field_type": "path",
1031
+ "fields": {
1032
+ "name": "branch",
1033
+ "type": "string",
1034
+ "in": "path",
1035
+ "description": "The name of the branch."
1036
+ }
1037
+ }
1038
+ },
1039
+ {
1040
+ "namespace_description": "Get all status check contexts",
1041
+ "method": "get",
1042
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
1043
+ "field_0": {
1044
+ "field_type": "header",
1045
+ "fields": {
1046
+ "name": "accept",
1047
+ "type": "string",
1048
+ "in": "header",
1049
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1050
+ }
1051
+ },
1052
+ "field_1": {
1053
+ "field_type": "path",
1054
+ "fields": {
1055
+ "name": "owner",
1056
+ "type": "string",
1057
+ "in": "path",
1058
+ "description": ""
1059
+ }
1060
+ },
1061
+ "field_2": {
1062
+ "field_type": "path",
1063
+ "fields": {
1064
+ "name": "repo",
1065
+ "type": "string",
1066
+ "in": "path",
1067
+ "description": ""
1068
+ }
1069
+ },
1070
+ "field_3": {
1071
+ "field_type": "path",
1072
+ "fields": {
1073
+ "name": "branch",
1074
+ "type": "string",
1075
+ "in": "path",
1076
+ "description": "The name of the branch."
1077
+ }
1078
+ }
1079
+ },
1080
+ {
1081
+ "namespace_description": "Add status check contexts",
1082
+ "method": "post",
1083
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
1084
+ "field_0": {
1085
+ "field_type": "header",
1086
+ "fields": {
1087
+ "name": "accept",
1088
+ "type": "string",
1089
+ "in": "header",
1090
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1091
+ }
1092
+ },
1093
+ "field_1": {
1094
+ "field_type": "path",
1095
+ "fields": {
1096
+ "name": "owner",
1097
+ "type": "string",
1098
+ "in": "path",
1099
+ "description": ""
1100
+ }
1101
+ },
1102
+ "field_2": {
1103
+ "field_type": "path",
1104
+ "fields": {
1105
+ "name": "repo",
1106
+ "type": "string",
1107
+ "in": "path",
1108
+ "description": ""
1109
+ }
1110
+ },
1111
+ "field_3": {
1112
+ "field_type": "path",
1113
+ "fields": {
1114
+ "name": "branch",
1115
+ "type": "string",
1116
+ "in": "path",
1117
+ "description": "The name of the branch."
1118
+ }
1119
+ },
1120
+ "field_4": {
1121
+ "field_type": "body",
1122
+ "fields": {
1123
+ "name": "contexts",
1124
+ "type": "array of strings",
1125
+ "in": "body",
1126
+ "description": "Required. contexts parameter"
1127
+ }
1128
+ }
1129
+ },
1130
+ {
1131
+ "namespace_description": "Set status check contexts",
1132
+ "method": "put",
1133
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
1134
+ "field_0": {
1135
+ "field_type": "header",
1136
+ "fields": {
1137
+ "name": "accept",
1138
+ "type": "string",
1139
+ "in": "header",
1140
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1141
+ }
1142
+ },
1143
+ "field_1": {
1144
+ "field_type": "path",
1145
+ "fields": {
1146
+ "name": "owner",
1147
+ "type": "string",
1148
+ "in": "path",
1149
+ "description": ""
1150
+ }
1151
+ },
1152
+ "field_2": {
1153
+ "field_type": "path",
1154
+ "fields": {
1155
+ "name": "repo",
1156
+ "type": "string",
1157
+ "in": "path",
1158
+ "description": ""
1159
+ }
1160
+ },
1161
+ "field_3": {
1162
+ "field_type": "path",
1163
+ "fields": {
1164
+ "name": "branch",
1165
+ "type": "string",
1166
+ "in": "path",
1167
+ "description": "The name of the branch."
1168
+ }
1169
+ },
1170
+ "field_4": {
1171
+ "field_type": "body",
1172
+ "fields": {
1173
+ "name": "contexts",
1174
+ "type": "array of strings",
1175
+ "in": "body",
1176
+ "description": "Required. contexts parameter"
1177
+ }
1178
+ }
1179
+ },
1180
+ {
1181
+ "namespace_description": "Remove status check contexts",
1182
+ "method": "delete",
1183
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
1184
+ "field_0": {
1185
+ "field_type": "header",
1186
+ "fields": {
1187
+ "name": "accept",
1188
+ "type": "string",
1189
+ "in": "header",
1190
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1191
+ }
1192
+ },
1193
+ "field_1": {
1194
+ "field_type": "path",
1195
+ "fields": {
1196
+ "name": "owner",
1197
+ "type": "string",
1198
+ "in": "path",
1199
+ "description": ""
1200
+ }
1201
+ },
1202
+ "field_2": {
1203
+ "field_type": "path",
1204
+ "fields": {
1205
+ "name": "repo",
1206
+ "type": "string",
1207
+ "in": "path",
1208
+ "description": ""
1209
+ }
1210
+ },
1211
+ "field_3": {
1212
+ "field_type": "path",
1213
+ "fields": {
1214
+ "name": "branch",
1215
+ "type": "string",
1216
+ "in": "path",
1217
+ "description": "The name of the branch."
1218
+ }
1219
+ },
1220
+ "field_4": {
1221
+ "field_type": "body",
1222
+ "fields": {
1223
+ "name": "contexts",
1224
+ "type": "array of strings",
1225
+ "in": "body",
1226
+ "description": "Required. contexts parameter"
1227
+ }
1228
+ }
1229
+ },
1230
+ {
1231
+ "namespace_description": "Get access restrictions",
1232
+ "method": "get",
1233
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions",
1234
+ "field_0": {
1235
+ "field_type": "header",
1236
+ "fields": {
1237
+ "name": "accept",
1238
+ "type": "string",
1239
+ "in": "header",
1240
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1241
+ }
1242
+ },
1243
+ "field_1": {
1244
+ "field_type": "path",
1245
+ "fields": {
1246
+ "name": "owner",
1247
+ "type": "string",
1248
+ "in": "path",
1249
+ "description": ""
1250
+ }
1251
+ },
1252
+ "field_2": {
1253
+ "field_type": "path",
1254
+ "fields": {
1255
+ "name": "repo",
1256
+ "type": "string",
1257
+ "in": "path",
1258
+ "description": ""
1259
+ }
1260
+ },
1261
+ "field_3": {
1262
+ "field_type": "path",
1263
+ "fields": {
1264
+ "name": "branch",
1265
+ "type": "string",
1266
+ "in": "path",
1267
+ "description": "The name of the branch."
1268
+ }
1269
+ }
1270
+ },
1271
+ {
1272
+ "namespace_description": "Delete access restrictions",
1273
+ "method": "delete",
1274
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions",
1275
+ "field_0": {
1276
+ "field_type": "header",
1277
+ "fields": {
1278
+ "name": "accept",
1279
+ "type": "string",
1280
+ "in": "header",
1281
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1282
+ }
1283
+ },
1284
+ "field_1": {
1285
+ "field_type": "path",
1286
+ "fields": {
1287
+ "name": "owner",
1288
+ "type": "string",
1289
+ "in": "path",
1290
+ "description": ""
1291
+ }
1292
+ },
1293
+ "field_2": {
1294
+ "field_type": "path",
1295
+ "fields": {
1296
+ "name": "repo",
1297
+ "type": "string",
1298
+ "in": "path",
1299
+ "description": ""
1300
+ }
1301
+ },
1302
+ "field_3": {
1303
+ "field_type": "path",
1304
+ "fields": {
1305
+ "name": "branch",
1306
+ "type": "string",
1307
+ "in": "path",
1308
+ "description": "The name of the branch."
1309
+ }
1310
+ }
1311
+ },
1312
+ {
1313
+ "namespace_description": "Get apps with access to the protected branch",
1314
+ "method": "get",
1315
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
1316
+ "field_0": {
1317
+ "field_type": "header",
1318
+ "fields": {
1319
+ "name": "accept",
1320
+ "type": "string",
1321
+ "in": "header",
1322
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1323
+ }
1324
+ },
1325
+ "field_1": {
1326
+ "field_type": "path",
1327
+ "fields": {
1328
+ "name": "owner",
1329
+ "type": "string",
1330
+ "in": "path",
1331
+ "description": ""
1332
+ }
1333
+ },
1334
+ "field_2": {
1335
+ "field_type": "path",
1336
+ "fields": {
1337
+ "name": "repo",
1338
+ "type": "string",
1339
+ "in": "path",
1340
+ "description": ""
1341
+ }
1342
+ },
1343
+ "field_3": {
1344
+ "field_type": "path",
1345
+ "fields": {
1346
+ "name": "branch",
1347
+ "type": "string",
1348
+ "in": "path",
1349
+ "description": "The name of the branch."
1350
+ }
1351
+ }
1352
+ },
1353
+ {
1354
+ "namespace_description": "Add app access restrictions",
1355
+ "method": "post",
1356
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
1357
+ "field_0": {
1358
+ "field_type": "header",
1359
+ "fields": {
1360
+ "name": "accept",
1361
+ "type": "string",
1362
+ "in": "header",
1363
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1364
+ }
1365
+ },
1366
+ "field_1": {
1367
+ "field_type": "path",
1368
+ "fields": {
1369
+ "name": "owner",
1370
+ "type": "string",
1371
+ "in": "path",
1372
+ "description": ""
1373
+ }
1374
+ },
1375
+ "field_2": {
1376
+ "field_type": "path",
1377
+ "fields": {
1378
+ "name": "repo",
1379
+ "type": "string",
1380
+ "in": "path",
1381
+ "description": ""
1382
+ }
1383
+ },
1384
+ "field_3": {
1385
+ "field_type": "path",
1386
+ "fields": {
1387
+ "name": "branch",
1388
+ "type": "string",
1389
+ "in": "path",
1390
+ "description": "The name of the branch."
1391
+ }
1392
+ },
1393
+ "field_4": {
1394
+ "field_type": "body",
1395
+ "fields": {
1396
+ "name": "apps",
1397
+ "type": "array of strings",
1398
+ "in": "body",
1399
+ "description": "Required. apps parameter"
1400
+ }
1401
+ }
1402
+ },
1403
+ {
1404
+ "namespace_description": "Set app access restrictions",
1405
+ "method": "put",
1406
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
1407
+ "field_0": {
1408
+ "field_type": "header",
1409
+ "fields": {
1410
+ "name": "accept",
1411
+ "type": "string",
1412
+ "in": "header",
1413
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1414
+ }
1415
+ },
1416
+ "field_1": {
1417
+ "field_type": "path",
1418
+ "fields": {
1419
+ "name": "owner",
1420
+ "type": "string",
1421
+ "in": "path",
1422
+ "description": ""
1423
+ }
1424
+ },
1425
+ "field_2": {
1426
+ "field_type": "path",
1427
+ "fields": {
1428
+ "name": "repo",
1429
+ "type": "string",
1430
+ "in": "path",
1431
+ "description": ""
1432
+ }
1433
+ },
1434
+ "field_3": {
1435
+ "field_type": "path",
1436
+ "fields": {
1437
+ "name": "branch",
1438
+ "type": "string",
1439
+ "in": "path",
1440
+ "description": "The name of the branch."
1441
+ }
1442
+ },
1443
+ "field_4": {
1444
+ "field_type": "body",
1445
+ "fields": {
1446
+ "name": "apps",
1447
+ "type": "array of strings",
1448
+ "in": "body",
1449
+ "description": "Required. apps parameter"
1450
+ }
1451
+ }
1452
+ },
1453
+ {
1454
+ "namespace_description": "Remove app access restrictions",
1455
+ "method": "delete",
1456
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
1457
+ "field_0": {
1458
+ "field_type": "header",
1459
+ "fields": {
1460
+ "name": "accept",
1461
+ "type": "string",
1462
+ "in": "header",
1463
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1464
+ }
1465
+ },
1466
+ "field_1": {
1467
+ "field_type": "path",
1468
+ "fields": {
1469
+ "name": "owner",
1470
+ "type": "string",
1471
+ "in": "path",
1472
+ "description": ""
1473
+ }
1474
+ },
1475
+ "field_2": {
1476
+ "field_type": "path",
1477
+ "fields": {
1478
+ "name": "repo",
1479
+ "type": "string",
1480
+ "in": "path",
1481
+ "description": ""
1482
+ }
1483
+ },
1484
+ "field_3": {
1485
+ "field_type": "path",
1486
+ "fields": {
1487
+ "name": "branch",
1488
+ "type": "string",
1489
+ "in": "path",
1490
+ "description": "The name of the branch."
1491
+ }
1492
+ },
1493
+ "field_4": {
1494
+ "field_type": "body",
1495
+ "fields": {
1496
+ "name": "apps",
1497
+ "type": "array of strings",
1498
+ "in": "body",
1499
+ "description": "Required. apps parameter"
1500
+ }
1501
+ }
1502
+ },
1503
+ {
1504
+ "namespace_description": "Get teams with access to the protected branch",
1505
+ "method": "get",
1506
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
1507
+ "field_0": {
1508
+ "field_type": "header",
1509
+ "fields": {
1510
+ "name": "accept",
1511
+ "type": "string",
1512
+ "in": "header",
1513
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1514
+ }
1515
+ },
1516
+ "field_1": {
1517
+ "field_type": "path",
1518
+ "fields": {
1519
+ "name": "owner",
1520
+ "type": "string",
1521
+ "in": "path",
1522
+ "description": ""
1523
+ }
1524
+ },
1525
+ "field_2": {
1526
+ "field_type": "path",
1527
+ "fields": {
1528
+ "name": "repo",
1529
+ "type": "string",
1530
+ "in": "path",
1531
+ "description": ""
1532
+ }
1533
+ },
1534
+ "field_3": {
1535
+ "field_type": "path",
1536
+ "fields": {
1537
+ "name": "branch",
1538
+ "type": "string",
1539
+ "in": "path",
1540
+ "description": "The name of the branch."
1541
+ }
1542
+ }
1543
+ },
1544
+ {
1545
+ "namespace_description": "Add team access restrictions",
1546
+ "method": "post",
1547
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
1548
+ "field_0": {
1549
+ "field_type": "header",
1550
+ "fields": {
1551
+ "name": "accept",
1552
+ "type": "string",
1553
+ "in": "header",
1554
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1555
+ }
1556
+ },
1557
+ "field_1": {
1558
+ "field_type": "path",
1559
+ "fields": {
1560
+ "name": "owner",
1561
+ "type": "string",
1562
+ "in": "path",
1563
+ "description": ""
1564
+ }
1565
+ },
1566
+ "field_2": {
1567
+ "field_type": "path",
1568
+ "fields": {
1569
+ "name": "repo",
1570
+ "type": "string",
1571
+ "in": "path",
1572
+ "description": ""
1573
+ }
1574
+ },
1575
+ "field_3": {
1576
+ "field_type": "path",
1577
+ "fields": {
1578
+ "name": "branch",
1579
+ "type": "string",
1580
+ "in": "path",
1581
+ "description": "The name of the branch."
1582
+ }
1583
+ },
1584
+ "field_4": {
1585
+ "field_type": "body",
1586
+ "fields": {
1587
+ "name": "teams",
1588
+ "type": "array of strings",
1589
+ "in": "body",
1590
+ "description": "Required. teams parameter"
1591
+ }
1592
+ }
1593
+ },
1594
+ {
1595
+ "namespace_description": "Set team access restrictions",
1596
+ "method": "put",
1597
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
1598
+ "field_0": {
1599
+ "field_type": "header",
1600
+ "fields": {
1601
+ "name": "accept",
1602
+ "type": "string",
1603
+ "in": "header",
1604
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1605
+ }
1606
+ },
1607
+ "field_1": {
1608
+ "field_type": "path",
1609
+ "fields": {
1610
+ "name": "owner",
1611
+ "type": "string",
1612
+ "in": "path",
1613
+ "description": ""
1614
+ }
1615
+ },
1616
+ "field_2": {
1617
+ "field_type": "path",
1618
+ "fields": {
1619
+ "name": "repo",
1620
+ "type": "string",
1621
+ "in": "path",
1622
+ "description": ""
1623
+ }
1624
+ },
1625
+ "field_3": {
1626
+ "field_type": "path",
1627
+ "fields": {
1628
+ "name": "branch",
1629
+ "type": "string",
1630
+ "in": "path",
1631
+ "description": "The name of the branch."
1632
+ }
1633
+ },
1634
+ "field_4": {
1635
+ "field_type": "body",
1636
+ "fields": {
1637
+ "name": "teams",
1638
+ "type": "array of strings",
1639
+ "in": "body",
1640
+ "description": "Required. teams parameter"
1641
+ }
1642
+ }
1643
+ },
1644
+ {
1645
+ "namespace_description": "Remove team access restrictions",
1646
+ "method": "delete",
1647
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
1648
+ "field_0": {
1649
+ "field_type": "header",
1650
+ "fields": {
1651
+ "name": "accept",
1652
+ "type": "string",
1653
+ "in": "header",
1654
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1655
+ }
1656
+ },
1657
+ "field_1": {
1658
+ "field_type": "path",
1659
+ "fields": {
1660
+ "name": "owner",
1661
+ "type": "string",
1662
+ "in": "path",
1663
+ "description": ""
1664
+ }
1665
+ },
1666
+ "field_2": {
1667
+ "field_type": "path",
1668
+ "fields": {
1669
+ "name": "repo",
1670
+ "type": "string",
1671
+ "in": "path",
1672
+ "description": ""
1673
+ }
1674
+ },
1675
+ "field_3": {
1676
+ "field_type": "path",
1677
+ "fields": {
1678
+ "name": "branch",
1679
+ "type": "string",
1680
+ "in": "path",
1681
+ "description": "The name of the branch."
1682
+ }
1683
+ },
1684
+ "field_4": {
1685
+ "field_type": "body",
1686
+ "fields": {
1687
+ "name": "teams",
1688
+ "type": "array of strings",
1689
+ "in": "body",
1690
+ "description": "Required. teams parameter"
1691
+ }
1692
+ }
1693
+ },
1694
+ {
1695
+ "namespace_description": "Get users with access to the protected branch",
1696
+ "method": "get",
1697
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
1698
+ "field_0": {
1699
+ "field_type": "header",
1700
+ "fields": {
1701
+ "name": "accept",
1702
+ "type": "string",
1703
+ "in": "header",
1704
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1705
+ }
1706
+ },
1707
+ "field_1": {
1708
+ "field_type": "path",
1709
+ "fields": {
1710
+ "name": "owner",
1711
+ "type": "string",
1712
+ "in": "path",
1713
+ "description": ""
1714
+ }
1715
+ },
1716
+ "field_2": {
1717
+ "field_type": "path",
1718
+ "fields": {
1719
+ "name": "repo",
1720
+ "type": "string",
1721
+ "in": "path",
1722
+ "description": ""
1723
+ }
1724
+ },
1725
+ "field_3": {
1726
+ "field_type": "path",
1727
+ "fields": {
1728
+ "name": "branch",
1729
+ "type": "string",
1730
+ "in": "path",
1731
+ "description": "The name of the branch."
1732
+ }
1733
+ }
1734
+ },
1735
+ {
1736
+ "namespace_description": "Add user access restrictions",
1737
+ "method": "post",
1738
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
1739
+ "field_0": {
1740
+ "field_type": "header",
1741
+ "fields": {
1742
+ "name": "accept",
1743
+ "type": "string",
1744
+ "in": "header",
1745
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1746
+ }
1747
+ },
1748
+ "field_1": {
1749
+ "field_type": "path",
1750
+ "fields": {
1751
+ "name": "owner",
1752
+ "type": "string",
1753
+ "in": "path",
1754
+ "description": ""
1755
+ }
1756
+ },
1757
+ "field_2": {
1758
+ "field_type": "path",
1759
+ "fields": {
1760
+ "name": "repo",
1761
+ "type": "string",
1762
+ "in": "path",
1763
+ "description": ""
1764
+ }
1765
+ },
1766
+ "field_3": {
1767
+ "field_type": "path",
1768
+ "fields": {
1769
+ "name": "branch",
1770
+ "type": "string",
1771
+ "in": "path",
1772
+ "description": "The name of the branch."
1773
+ }
1774
+ },
1775
+ "field_4": {
1776
+ "field_type": "body",
1777
+ "fields": {
1778
+ "name": "users",
1779
+ "type": "array of strings",
1780
+ "in": "body",
1781
+ "description": "Required. users parameter"
1782
+ }
1783
+ }
1784
+ },
1785
+ {
1786
+ "namespace_description": "Set user access restrictions",
1787
+ "method": "put",
1788
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
1789
+ "field_0": {
1790
+ "field_type": "header",
1791
+ "fields": {
1792
+ "name": "accept",
1793
+ "type": "string",
1794
+ "in": "header",
1795
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1796
+ }
1797
+ },
1798
+ "field_1": {
1799
+ "field_type": "path",
1800
+ "fields": {
1801
+ "name": "owner",
1802
+ "type": "string",
1803
+ "in": "path",
1804
+ "description": ""
1805
+ }
1806
+ },
1807
+ "field_2": {
1808
+ "field_type": "path",
1809
+ "fields": {
1810
+ "name": "repo",
1811
+ "type": "string",
1812
+ "in": "path",
1813
+ "description": ""
1814
+ }
1815
+ },
1816
+ "field_3": {
1817
+ "field_type": "path",
1818
+ "fields": {
1819
+ "name": "branch",
1820
+ "type": "string",
1821
+ "in": "path",
1822
+ "description": "The name of the branch."
1823
+ }
1824
+ },
1825
+ "field_4": {
1826
+ "field_type": "body",
1827
+ "fields": {
1828
+ "name": "users",
1829
+ "type": "array of strings",
1830
+ "in": "body",
1831
+ "description": "Required. users parameter"
1832
+ }
1833
+ }
1834
+ },
1835
+ {
1836
+ "namespace_description": "Remove user access restrictions",
1837
+ "method": "delete",
1838
+ "endpoint": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
1839
+ "field_0": {
1840
+ "field_type": "header",
1841
+ "fields": {
1842
+ "name": "accept",
1843
+ "type": "string",
1844
+ "in": "header",
1845
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1846
+ }
1847
+ },
1848
+ "field_1": {
1849
+ "field_type": "path",
1850
+ "fields": {
1851
+ "name": "owner",
1852
+ "type": "string",
1853
+ "in": "path",
1854
+ "description": ""
1855
+ }
1856
+ },
1857
+ "field_2": {
1858
+ "field_type": "path",
1859
+ "fields": {
1860
+ "name": "repo",
1861
+ "type": "string",
1862
+ "in": "path",
1863
+ "description": ""
1864
+ }
1865
+ },
1866
+ "field_3": {
1867
+ "field_type": "path",
1868
+ "fields": {
1869
+ "name": "branch",
1870
+ "type": "string",
1871
+ "in": "path",
1872
+ "description": "The name of the branch."
1873
+ }
1874
+ },
1875
+ "field_4": {
1876
+ "field_type": "body",
1877
+ "fields": {
1878
+ "name": "users",
1879
+ "type": "array of strings",
1880
+ "in": "body",
1881
+ "description": "Required. users parameter"
1882
+ }
1883
+ }
1884
+ }
1885
+ ]
1886
+ }