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,698 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List deployments",
5
+ "method": "get",
6
+ "endpoint": "/repos/{owner}/{repo}/deployments",
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": "sha",
38
+ "type": "string",
39
+ "in": "query",
40
+ "description": "The SHA recorded at creation time.Default: none"
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "ref",
47
+ "type": "string",
48
+ "in": "query",
49
+ "description": "The name of the ref. This can be a branch, tag, or SHA.Default: none"
50
+ }
51
+ },
52
+ "field_5": {
53
+ "field_type": "query",
54
+ "fields": {
55
+ "name": "task",
56
+ "type": "string",
57
+ "in": "query",
58
+ "description": "The name of the task for the deployment (e.g., deploy or deploy:migrations).Default: none"
59
+ }
60
+ },
61
+ "field_6": {
62
+ "field_type": "query",
63
+ "fields": {
64
+ "name": "environment",
65
+ "type": "stringnull",
66
+ "in": "query",
67
+ "description": "The name of the environment that was deployed to (e.g., staging or production).Default: none"
68
+ }
69
+ },
70
+ "field_7": {
71
+ "field_type": "query",
72
+ "fields": {
73
+ "name": "per_page",
74
+ "type": "integer",
75
+ "in": "query",
76
+ "description": "Results per page (max 100)Default: 30"
77
+ }
78
+ },
79
+ "field_8": {
80
+ "field_type": "query",
81
+ "fields": {
82
+ "name": "page",
83
+ "type": "integer",
84
+ "in": "query",
85
+ "description": "Page number of the results to fetch.Default: 1"
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "namespace_description": "Create a deployment",
91
+ "method": "post",
92
+ "endpoint": "/repos/{owner}/{repo}/deployments",
93
+ "field_0": {
94
+ "field_type": "header",
95
+ "fields": {
96
+ "name": "accept",
97
+ "type": "string",
98
+ "in": "header",
99
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
100
+ }
101
+ },
102
+ "field_1": {
103
+ "field_type": "path",
104
+ "fields": {
105
+ "name": "owner",
106
+ "type": "string",
107
+ "in": "path",
108
+ "description": ""
109
+ }
110
+ },
111
+ "field_2": {
112
+ "field_type": "path",
113
+ "fields": {
114
+ "name": "repo",
115
+ "type": "string",
116
+ "in": "path",
117
+ "description": ""
118
+ }
119
+ },
120
+ "field_3": {
121
+ "field_type": "body",
122
+ "fields": {
123
+ "name": "ref",
124
+ "type": "string",
125
+ "in": "body",
126
+ "description": "Required. The ref to deploy. This can be a branch, tag, or SHA."
127
+ }
128
+ },
129
+ "field_4": {
130
+ "field_type": "body",
131
+ "fields": {
132
+ "name": "task",
133
+ "type": "string",
134
+ "in": "body",
135
+ "description": "Specifies a task to execute (e.g., deploy or deploy:migrations).Default: deploy"
136
+ }
137
+ },
138
+ "field_5": {
139
+ "field_type": "body",
140
+ "fields": {
141
+ "name": "auto_merge",
142
+ "type": "boolean",
143
+ "in": "body",
144
+ "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.Default: "
145
+ }
146
+ },
147
+ "field_6": {
148
+ "field_type": "body",
149
+ "fields": {
150
+ "name": "required_contexts",
151
+ "type": "array of strings",
152
+ "in": "body",
153
+ "description": "The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts."
154
+ }
155
+ },
156
+ "field_7": {
157
+ "field_type": "body",
158
+ "fields": {
159
+ "name": "payload",
160
+ "type": "object or string or ",
161
+ "in": "body",
162
+ "description": "JSON payload with extra information about the deployment."
163
+ }
164
+ },
165
+ "field_8": {
166
+ "field_type": "body",
167
+ "fields": {
168
+ "name": "environment",
169
+ "type": "string",
170
+ "in": "body",
171
+ "description": "Name for the target deployment environment (e.g., production, staging, qa).Default: production"
172
+ }
173
+ },
174
+ "field_9": {
175
+ "field_type": "body",
176
+ "fields": {
177
+ "name": "description",
178
+ "type": "string or null",
179
+ "in": "body",
180
+ "description": "Short description of the deployment."
181
+ }
182
+ },
183
+ "field_10": {
184
+ "field_type": "body",
185
+ "fields": {
186
+ "name": "transient_environment",
187
+ "type": "boolean",
188
+ "in": "body",
189
+ "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: false"
190
+ }
191
+ },
192
+ "field_11": {
193
+ "field_type": "body",
194
+ "fields": {
195
+ "name": "production_environment",
196
+ "type": "boolean",
197
+ "in": "body",
198
+ "description": "Specifies if the given environment is one that end-users directly interact with. Default: true when environment is production and false otherwise."
199
+ }
200
+ }
201
+ },
202
+ {
203
+ "namespace_description": "Get a deployment",
204
+ "method": "get",
205
+ "endpoint": "/repos/{owner}/{repo}/deployments/{deployment_id}",
206
+ "field_0": {
207
+ "field_type": "header",
208
+ "fields": {
209
+ "name": "accept",
210
+ "type": "string",
211
+ "in": "header",
212
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
213
+ }
214
+ },
215
+ "field_1": {
216
+ "field_type": "path",
217
+ "fields": {
218
+ "name": "owner",
219
+ "type": "string",
220
+ "in": "path",
221
+ "description": ""
222
+ }
223
+ },
224
+ "field_2": {
225
+ "field_type": "path",
226
+ "fields": {
227
+ "name": "repo",
228
+ "type": "string",
229
+ "in": "path",
230
+ "description": ""
231
+ }
232
+ },
233
+ "field_3": {
234
+ "field_type": "path",
235
+ "fields": {
236
+ "name": "deployment_id",
237
+ "type": "integer",
238
+ "in": "path",
239
+ "description": "deployment_id parameter"
240
+ }
241
+ }
242
+ },
243
+ {
244
+ "namespace_description": "Delete a deployment",
245
+ "method": "delete",
246
+ "endpoint": "/repos/{owner}/{repo}/deployments/{deployment_id}",
247
+ "field_0": {
248
+ "field_type": "header",
249
+ "fields": {
250
+ "name": "accept",
251
+ "type": "string",
252
+ "in": "header",
253
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
254
+ }
255
+ },
256
+ "field_1": {
257
+ "field_type": "path",
258
+ "fields": {
259
+ "name": "owner",
260
+ "type": "string",
261
+ "in": "path",
262
+ "description": ""
263
+ }
264
+ },
265
+ "field_2": {
266
+ "field_type": "path",
267
+ "fields": {
268
+ "name": "repo",
269
+ "type": "string",
270
+ "in": "path",
271
+ "description": ""
272
+ }
273
+ },
274
+ "field_3": {
275
+ "field_type": "path",
276
+ "fields": {
277
+ "name": "deployment_id",
278
+ "type": "integer",
279
+ "in": "path",
280
+ "description": "deployment_id parameter"
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "namespace_description": "Get all environments",
286
+ "method": "get",
287
+ "endpoint": "/repos/{owner}/{repo}/environments",
288
+ "field_0": {
289
+ "field_type": "header",
290
+ "fields": {
291
+ "name": "accept",
292
+ "type": "string",
293
+ "in": "header",
294
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
295
+ }
296
+ },
297
+ "field_1": {
298
+ "field_type": "path",
299
+ "fields": {
300
+ "name": "owner",
301
+ "type": "string",
302
+ "in": "path",
303
+ "description": ""
304
+ }
305
+ },
306
+ "field_2": {
307
+ "field_type": "path",
308
+ "fields": {
309
+ "name": "repo",
310
+ "type": "string",
311
+ "in": "path",
312
+ "description": ""
313
+ }
314
+ },
315
+ "field_3": {
316
+ "field_type": "query",
317
+ "fields": {
318
+ "name": "per_page",
319
+ "type": "integer",
320
+ "in": "query",
321
+ "description": "Results per page (max 100)Default: 30"
322
+ }
323
+ },
324
+ "field_4": {
325
+ "field_type": "query",
326
+ "fields": {
327
+ "name": "page",
328
+ "type": "integer",
329
+ "in": "query",
330
+ "description": "Page number of the results to fetch.Default: 1"
331
+ }
332
+ }
333
+ },
334
+ {
335
+ "namespace_description": "Get an environment",
336
+ "method": "get",
337
+ "endpoint": "/repos/{owner}/{repo}/environments/{environment_name}",
338
+ "field_0": {
339
+ "field_type": "header",
340
+ "fields": {
341
+ "name": "accept",
342
+ "type": "string",
343
+ "in": "header",
344
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
345
+ }
346
+ },
347
+ "field_1": {
348
+ "field_type": "path",
349
+ "fields": {
350
+ "name": "owner",
351
+ "type": "string",
352
+ "in": "path",
353
+ "description": ""
354
+ }
355
+ },
356
+ "field_2": {
357
+ "field_type": "path",
358
+ "fields": {
359
+ "name": "repo",
360
+ "type": "string",
361
+ "in": "path",
362
+ "description": ""
363
+ }
364
+ },
365
+ "field_3": {
366
+ "field_type": "path",
367
+ "fields": {
368
+ "name": "environment_name",
369
+ "type": "string",
370
+ "in": "path",
371
+ "description": "The name of the environment"
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "namespace_description": "Create or update an environment",
377
+ "method": "put",
378
+ "endpoint": "/repos/{owner}/{repo}/environments/{environment_name}",
379
+ "field_0": {
380
+ "field_type": "header",
381
+ "fields": {
382
+ "name": "accept",
383
+ "type": "string",
384
+ "in": "header",
385
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
386
+ }
387
+ },
388
+ "field_1": {
389
+ "field_type": "path",
390
+ "fields": {
391
+ "name": "owner",
392
+ "type": "string",
393
+ "in": "path",
394
+ "description": ""
395
+ }
396
+ },
397
+ "field_2": {
398
+ "field_type": "path",
399
+ "fields": {
400
+ "name": "repo",
401
+ "type": "string",
402
+ "in": "path",
403
+ "description": ""
404
+ }
405
+ },
406
+ "field_3": {
407
+ "field_type": "path",
408
+ "fields": {
409
+ "name": "environment_name",
410
+ "type": "string",
411
+ "in": "path",
412
+ "description": "The name of the environment"
413
+ }
414
+ },
415
+ "field_4": {
416
+ "field_type": "body",
417
+ "fields": {
418
+ "name": "wait_timer",
419
+ "type": "integer",
420
+ "in": "body",
421
+ "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
422
+ }
423
+ },
424
+ "field_5": {
425
+ "field_type": "body",
426
+ "fields": {
427
+ "name": "reviewers",
428
+ "type": "array of objects or null",
429
+ "in": "body",
430
+ "description": "The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed."
431
+ }
432
+ },
433
+ "field_6": {
434
+ "field_type": "body",
435
+ "fields": {
436
+ "name": "deployment_branch_policy",
437
+ "type": "object or null",
438
+ "in": "body",
439
+ "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to null."
440
+ }
441
+ }
442
+ },
443
+ {
444
+ "namespace_description": "Delete an environment",
445
+ "method": "delete",
446
+ "endpoint": "/repos/{owner}/{repo}/environments/{environment_name}",
447
+ "field_0": {
448
+ "field_type": "header",
449
+ "fields": {
450
+ "name": "accept",
451
+ "type": "string",
452
+ "in": "header",
453
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
454
+ }
455
+ },
456
+ "field_1": {
457
+ "field_type": "path",
458
+ "fields": {
459
+ "name": "owner",
460
+ "type": "string",
461
+ "in": "path",
462
+ "description": ""
463
+ }
464
+ },
465
+ "field_2": {
466
+ "field_type": "path",
467
+ "fields": {
468
+ "name": "repo",
469
+ "type": "string",
470
+ "in": "path",
471
+ "description": ""
472
+ }
473
+ },
474
+ "field_3": {
475
+ "field_type": "path",
476
+ "fields": {
477
+ "name": "environment_name",
478
+ "type": "string",
479
+ "in": "path",
480
+ "description": "The name of the environment"
481
+ }
482
+ }
483
+ },
484
+ {
485
+ "namespace_description": "List deployment statuses",
486
+ "method": "get",
487
+ "endpoint": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
488
+ "field_0": {
489
+ "field_type": "header",
490
+ "fields": {
491
+ "name": "accept",
492
+ "type": "string",
493
+ "in": "header",
494
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
495
+ }
496
+ },
497
+ "field_1": {
498
+ "field_type": "path",
499
+ "fields": {
500
+ "name": "owner",
501
+ "type": "string",
502
+ "in": "path",
503
+ "description": ""
504
+ }
505
+ },
506
+ "field_2": {
507
+ "field_type": "path",
508
+ "fields": {
509
+ "name": "repo",
510
+ "type": "string",
511
+ "in": "path",
512
+ "description": ""
513
+ }
514
+ },
515
+ "field_3": {
516
+ "field_type": "path",
517
+ "fields": {
518
+ "name": "deployment_id",
519
+ "type": "integer",
520
+ "in": "path",
521
+ "description": "deployment_id parameter"
522
+ }
523
+ },
524
+ "field_4": {
525
+ "field_type": "query",
526
+ "fields": {
527
+ "name": "per_page",
528
+ "type": "integer",
529
+ "in": "query",
530
+ "description": "Results per page (max 100)Default: 30"
531
+ }
532
+ },
533
+ "field_5": {
534
+ "field_type": "query",
535
+ "fields": {
536
+ "name": "page",
537
+ "type": "integer",
538
+ "in": "query",
539
+ "description": "Page number of the results to fetch.Default: 1"
540
+ }
541
+ }
542
+ },
543
+ {
544
+ "namespace_description": "Create a deployment status",
545
+ "method": "post",
546
+ "endpoint": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
547
+ "field_0": {
548
+ "field_type": "header",
549
+ "fields": {
550
+ "name": "accept",
551
+ "type": "string",
552
+ "in": "header",
553
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
554
+ }
555
+ },
556
+ "field_1": {
557
+ "field_type": "path",
558
+ "fields": {
559
+ "name": "owner",
560
+ "type": "string",
561
+ "in": "path",
562
+ "description": ""
563
+ }
564
+ },
565
+ "field_2": {
566
+ "field_type": "path",
567
+ "fields": {
568
+ "name": "repo",
569
+ "type": "string",
570
+ "in": "path",
571
+ "description": ""
572
+ }
573
+ },
574
+ "field_3": {
575
+ "field_type": "path",
576
+ "fields": {
577
+ "name": "deployment_id",
578
+ "type": "integer",
579
+ "in": "path",
580
+ "description": "deployment_id parameter"
581
+ }
582
+ },
583
+ "field_4": {
584
+ "field_type": "body",
585
+ "fields": {
586
+ "name": "state",
587
+ "type": "string",
588
+ "in": "body",
589
+ "description": "Required. The state of the status. Can be one of error, failure, inactive, in_progress, queued, pending, or success. When you set a transient deployment to inactive, the deployment will be shown as destroyed in GitHub."
590
+ }
591
+ },
592
+ "field_5": {
593
+ "field_type": "body",
594
+ "fields": {
595
+ "name": "target_url",
596
+ "type": "string",
597
+ "in": "body",
598
+ "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. Note: It's recommended to use the log_url parameter, which replaces target_url."
599
+ }
600
+ },
601
+ "field_6": {
602
+ "field_type": "body",
603
+ "fields": {
604
+ "name": "log_url",
605
+ "type": "string",
606
+ "in": "body",
607
+ "description": "The full URL of the deployment's output. This parameter replaces target_url. We will continue to accept target_url to support legacy uses, but we recommend replacing target_url with log_url. Setting log_url will automatically set target_url to the same value. Default: \"\""
608
+ }
609
+ },
610
+ "field_7": {
611
+ "field_type": "body",
612
+ "fields": {
613
+ "name": "description",
614
+ "type": "string",
615
+ "in": "body",
616
+ "description": "A short description of the status. The maximum description length is 140 characters."
617
+ }
618
+ },
619
+ "field_8": {
620
+ "field_type": "body",
621
+ "fields": {
622
+ "name": "environment",
623
+ "type": "string",
624
+ "in": "body",
625
+ "description": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, production, staging, or qa."
626
+ }
627
+ },
628
+ "field_9": {
629
+ "field_type": "body",
630
+ "fields": {
631
+ "name": "environment_url",
632
+ "type": "string",
633
+ "in": "body",
634
+ "description": "Sets the URL for accessing your environment. Default: \"\""
635
+ }
636
+ },
637
+ "field_10": {
638
+ "field_type": "body",
639
+ "fields": {
640
+ "name": "auto_inactive",
641
+ "type": "boolean",
642
+ "in": "body",
643
+ "description": "Adds a new inactive status to all prior non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. An inactive status is only added to deployments that had a success state. Default: true"
644
+ }
645
+ }
646
+ },
647
+ {
648
+ "namespace_description": "Get a deployment status",
649
+ "method": "get",
650
+ "endpoint": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}",
651
+ "field_0": {
652
+ "field_type": "header",
653
+ "fields": {
654
+ "name": "accept",
655
+ "type": "string",
656
+ "in": "header",
657
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
658
+ }
659
+ },
660
+ "field_1": {
661
+ "field_type": "path",
662
+ "fields": {
663
+ "name": "owner",
664
+ "type": "string",
665
+ "in": "path",
666
+ "description": ""
667
+ }
668
+ },
669
+ "field_2": {
670
+ "field_type": "path",
671
+ "fields": {
672
+ "name": "repo",
673
+ "type": "string",
674
+ "in": "path",
675
+ "description": ""
676
+ }
677
+ },
678
+ "field_3": {
679
+ "field_type": "path",
680
+ "fields": {
681
+ "name": "deployment_id",
682
+ "type": "integer",
683
+ "in": "path",
684
+ "description": "deployment_id parameter"
685
+ }
686
+ },
687
+ "field_4": {
688
+ "field_type": "path",
689
+ "fields": {
690
+ "name": "status_id",
691
+ "type": "integer",
692
+ "in": "path",
693
+ "description": ""
694
+ }
695
+ }
696
+ }
697
+ ]
698
+ }