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,735 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Create a blob",
5
+ "method": "post",
6
+ "endpoint": "/repos/{owner}/{repo}/git/blobs",
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": "body",
36
+ "fields": {
37
+ "name": "content",
38
+ "type": "string",
39
+ "in": "body",
40
+ "description": "Required. The new blob's content."
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "body",
45
+ "fields": {
46
+ "name": "encoding",
47
+ "type": "string",
48
+ "in": "body",
49
+ "description": "The encoding used for content. Currently, \"utf-8\" and \"base64\" are supported.Default: utf-8"
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "namespace_description": "Get a blob",
55
+ "method": "get",
56
+ "endpoint": "/repos/{owner}/{repo}/git/blobs/{file_sha}",
57
+ "field_0": {
58
+ "field_type": "header",
59
+ "fields": {
60
+ "name": "accept",
61
+ "type": "string",
62
+ "in": "header",
63
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
64
+ }
65
+ },
66
+ "field_1": {
67
+ "field_type": "path",
68
+ "fields": {
69
+ "name": "owner",
70
+ "type": "string",
71
+ "in": "path",
72
+ "description": ""
73
+ }
74
+ },
75
+ "field_2": {
76
+ "field_type": "path",
77
+ "fields": {
78
+ "name": "repo",
79
+ "type": "string",
80
+ "in": "path",
81
+ "description": ""
82
+ }
83
+ },
84
+ "field_3": {
85
+ "field_type": "path",
86
+ "fields": {
87
+ "name": "file_sha",
88
+ "type": "string",
89
+ "in": "path",
90
+ "description": ""
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "namespace_description": "Create a commit",
96
+ "method": "post",
97
+ "endpoint": "/repos/{owner}/{repo}/git/commits",
98
+ "field_0": {
99
+ "field_type": "header",
100
+ "fields": {
101
+ "name": "accept",
102
+ "type": "string",
103
+ "in": "header",
104
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
105
+ }
106
+ },
107
+ "field_1": {
108
+ "field_type": "path",
109
+ "fields": {
110
+ "name": "owner",
111
+ "type": "string",
112
+ "in": "path",
113
+ "description": ""
114
+ }
115
+ },
116
+ "field_2": {
117
+ "field_type": "path",
118
+ "fields": {
119
+ "name": "repo",
120
+ "type": "string",
121
+ "in": "path",
122
+ "description": ""
123
+ }
124
+ },
125
+ "field_3": {
126
+ "field_type": "body",
127
+ "fields": {
128
+ "name": "message",
129
+ "type": "string",
130
+ "in": "body",
131
+ "description": "Required. The commit message"
132
+ }
133
+ },
134
+ "field_4": {
135
+ "field_type": "body",
136
+ "fields": {
137
+ "name": "tree",
138
+ "type": "string",
139
+ "in": "body",
140
+ "description": "Required. The SHA of the tree object this commit points to"
141
+ }
142
+ },
143
+ "field_5": {
144
+ "field_type": "body",
145
+ "fields": {
146
+ "name": "parents",
147
+ "type": "array of strings",
148
+ "in": "body",
149
+ "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided."
150
+ }
151
+ },
152
+ "field_6": {
153
+ "field_type": "body",
154
+ "fields": {
155
+ "name": "author",
156
+ "type": "object",
157
+ "in": "body",
158
+ "description": "Information about the author of the commit. By default, the author will be the authenticated user and the current date. See the author and committer object below for details."
159
+ }
160
+ },
161
+ "field_7": {
162
+ "field_type": null,
163
+ "fields": {
164
+ "name": "Properties of theauthorobjectName (Type)Descriptionname (string)Required. The name of the author (or committer) of the commitemail (string)Required. The email of the author (or committer) of the commitdate (string)Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.",
165
+ "type": null,
166
+ "in": null,
167
+ "description": null
168
+ }
169
+ },
170
+ "field_8": {
171
+ "field_type": "body",
172
+ "fields": {
173
+ "name": "committer",
174
+ "type": "object",
175
+ "in": "body",
176
+ "description": "Information about the person who is making the commit. By default, committer will use the information set in author. See the author and committer object below for details."
177
+ }
178
+ },
179
+ "field_9": {
180
+ "field_type": null,
181
+ "fields": {
182
+ "name": "Properties of thecommitterobjectName (Type)Descriptionname (string)The name of the author (or committer) of the commitemail (string)The email of the author (or committer) of the commitdate (string)Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.",
183
+ "type": null,
184
+ "in": null,
185
+ "description": null
186
+ }
187
+ },
188
+ "field_10": {
189
+ "field_type": "body",
190
+ "fields": {
191
+ "name": "signature",
192
+ "type": "string",
193
+ "in": "body",
194
+ "description": "The PGP signature of the commit. GitHub adds the signature to the gpgsig header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a signature parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to use the command line to create signed commits."
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "namespace_description": "Get a commit",
200
+ "method": "get",
201
+ "endpoint": "/repos/{owner}/{repo}/git/commits/{commit_sha}",
202
+ "field_0": {
203
+ "field_type": "header",
204
+ "fields": {
205
+ "name": "accept",
206
+ "type": "string",
207
+ "in": "header",
208
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
209
+ }
210
+ },
211
+ "field_1": {
212
+ "field_type": "path",
213
+ "fields": {
214
+ "name": "owner",
215
+ "type": "string",
216
+ "in": "path",
217
+ "description": ""
218
+ }
219
+ },
220
+ "field_2": {
221
+ "field_type": "path",
222
+ "fields": {
223
+ "name": "repo",
224
+ "type": "string",
225
+ "in": "path",
226
+ "description": ""
227
+ }
228
+ },
229
+ "field_3": {
230
+ "field_type": "path",
231
+ "fields": {
232
+ "name": "commit_sha",
233
+ "type": "string",
234
+ "in": "path",
235
+ "description": "commit_sha parameter"
236
+ }
237
+ }
238
+ },
239
+ {
240
+ "namespace_description": "List matching references",
241
+ "method": "get",
242
+ "endpoint": "/repos/{owner}/{repo}/git/matching-refs/{ref}",
243
+ "field_0": {
244
+ "field_type": "header",
245
+ "fields": {
246
+ "name": "accept",
247
+ "type": "string",
248
+ "in": "header",
249
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
250
+ }
251
+ },
252
+ "field_1": {
253
+ "field_type": "path",
254
+ "fields": {
255
+ "name": "owner",
256
+ "type": "string",
257
+ "in": "path",
258
+ "description": ""
259
+ }
260
+ },
261
+ "field_2": {
262
+ "field_type": "path",
263
+ "fields": {
264
+ "name": "repo",
265
+ "type": "string",
266
+ "in": "path",
267
+ "description": ""
268
+ }
269
+ },
270
+ "field_3": {
271
+ "field_type": "path",
272
+ "fields": {
273
+ "name": "ref",
274
+ "type": "string",
275
+ "in": "path",
276
+ "description": "ref parameter"
277
+ }
278
+ },
279
+ "field_4": {
280
+ "field_type": "query",
281
+ "fields": {
282
+ "name": "per_page",
283
+ "type": "integer",
284
+ "in": "query",
285
+ "description": "Results per page (max 100)Default: 30"
286
+ }
287
+ },
288
+ "field_5": {
289
+ "field_type": "query",
290
+ "fields": {
291
+ "name": "page",
292
+ "type": "integer",
293
+ "in": "query",
294
+ "description": "Page number of the results to fetch.Default: 1"
295
+ }
296
+ }
297
+ },
298
+ {
299
+ "namespace_description": "Get a reference",
300
+ "method": "get",
301
+ "endpoint": "/repos/{owner}/{repo}/git/ref/{ref}",
302
+ "field_0": {
303
+ "field_type": "header",
304
+ "fields": {
305
+ "name": "accept",
306
+ "type": "string",
307
+ "in": "header",
308
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
309
+ }
310
+ },
311
+ "field_1": {
312
+ "field_type": "path",
313
+ "fields": {
314
+ "name": "owner",
315
+ "type": "string",
316
+ "in": "path",
317
+ "description": ""
318
+ }
319
+ },
320
+ "field_2": {
321
+ "field_type": "path",
322
+ "fields": {
323
+ "name": "repo",
324
+ "type": "string",
325
+ "in": "path",
326
+ "description": ""
327
+ }
328
+ },
329
+ "field_3": {
330
+ "field_type": "path",
331
+ "fields": {
332
+ "name": "ref",
333
+ "type": "string",
334
+ "in": "path",
335
+ "description": "ref parameter"
336
+ }
337
+ }
338
+ },
339
+ {
340
+ "namespace_description": "Create a reference",
341
+ "method": "post",
342
+ "endpoint": "/repos/{owner}/{repo}/git/refs",
343
+ "field_0": {
344
+ "field_type": "header",
345
+ "fields": {
346
+ "name": "accept",
347
+ "type": "string",
348
+ "in": "header",
349
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
350
+ }
351
+ },
352
+ "field_1": {
353
+ "field_type": "path",
354
+ "fields": {
355
+ "name": "owner",
356
+ "type": "string",
357
+ "in": "path",
358
+ "description": ""
359
+ }
360
+ },
361
+ "field_2": {
362
+ "field_type": "path",
363
+ "fields": {
364
+ "name": "repo",
365
+ "type": "string",
366
+ "in": "path",
367
+ "description": ""
368
+ }
369
+ },
370
+ "field_3": {
371
+ "field_type": "body",
372
+ "fields": {
373
+ "name": "ref",
374
+ "type": "string",
375
+ "in": "body",
376
+ "description": "Required. The name of the fully qualified reference (ie: refs/heads/master). If it doesn't start with 'refs' and have at least two slashes, it will be rejected."
377
+ }
378
+ },
379
+ "field_4": {
380
+ "field_type": "body",
381
+ "fields": {
382
+ "name": "sha",
383
+ "type": "string",
384
+ "in": "body",
385
+ "description": "Required. The SHA1 value for this reference."
386
+ }
387
+ },
388
+ "field_5": {
389
+ "field_type": "body",
390
+ "fields": {
391
+ "name": "key",
392
+ "type": "string",
393
+ "in": "body",
394
+ "description": ""
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "namespace_description": "Update a reference",
400
+ "method": "patch",
401
+ "endpoint": "/repos/{owner}/{repo}/git/refs/{ref}",
402
+ "field_0": {
403
+ "field_type": "header",
404
+ "fields": {
405
+ "name": "accept",
406
+ "type": "string",
407
+ "in": "header",
408
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
409
+ }
410
+ },
411
+ "field_1": {
412
+ "field_type": "path",
413
+ "fields": {
414
+ "name": "owner",
415
+ "type": "string",
416
+ "in": "path",
417
+ "description": ""
418
+ }
419
+ },
420
+ "field_2": {
421
+ "field_type": "path",
422
+ "fields": {
423
+ "name": "repo",
424
+ "type": "string",
425
+ "in": "path",
426
+ "description": ""
427
+ }
428
+ },
429
+ "field_3": {
430
+ "field_type": "path",
431
+ "fields": {
432
+ "name": "ref",
433
+ "type": "string",
434
+ "in": "path",
435
+ "description": "ref parameter"
436
+ }
437
+ },
438
+ "field_4": {
439
+ "field_type": "body",
440
+ "fields": {
441
+ "name": "sha",
442
+ "type": "string",
443
+ "in": "body",
444
+ "description": "Required. The SHA1 value to set this reference to"
445
+ }
446
+ },
447
+ "field_5": {
448
+ "field_type": "body",
449
+ "fields": {
450
+ "name": "force",
451
+ "type": "boolean",
452
+ "in": "body",
453
+ "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to false will make sure you're not overwriting work."
454
+ }
455
+ }
456
+ },
457
+ {
458
+ "namespace_description": "Delete a reference",
459
+ "method": "delete",
460
+ "endpoint": "/repos/{owner}/{repo}/git/refs/{ref}",
461
+ "field_0": {
462
+ "field_type": "header",
463
+ "fields": {
464
+ "name": "accept",
465
+ "type": "string",
466
+ "in": "header",
467
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
468
+ }
469
+ },
470
+ "field_1": {
471
+ "field_type": "path",
472
+ "fields": {
473
+ "name": "owner",
474
+ "type": "string",
475
+ "in": "path",
476
+ "description": ""
477
+ }
478
+ },
479
+ "field_2": {
480
+ "field_type": "path",
481
+ "fields": {
482
+ "name": "repo",
483
+ "type": "string",
484
+ "in": "path",
485
+ "description": ""
486
+ }
487
+ },
488
+ "field_3": {
489
+ "field_type": "path",
490
+ "fields": {
491
+ "name": "ref",
492
+ "type": "string",
493
+ "in": "path",
494
+ "description": "ref parameter"
495
+ }
496
+ }
497
+ },
498
+ {
499
+ "namespace_description": "Create a tag object",
500
+ "method": "post",
501
+ "endpoint": "/repos/{owner}/{repo}/git/tags",
502
+ "field_0": {
503
+ "field_type": "header",
504
+ "fields": {
505
+ "name": "accept",
506
+ "type": "string",
507
+ "in": "header",
508
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
509
+ }
510
+ },
511
+ "field_1": {
512
+ "field_type": "path",
513
+ "fields": {
514
+ "name": "owner",
515
+ "type": "string",
516
+ "in": "path",
517
+ "description": ""
518
+ }
519
+ },
520
+ "field_2": {
521
+ "field_type": "path",
522
+ "fields": {
523
+ "name": "repo",
524
+ "type": "string",
525
+ "in": "path",
526
+ "description": ""
527
+ }
528
+ },
529
+ "field_3": {
530
+ "field_type": "body",
531
+ "fields": {
532
+ "name": "tag",
533
+ "type": "string",
534
+ "in": "body",
535
+ "description": "Required. The tag's name. This is typically a version (e.g., \"v0.0.1\")."
536
+ }
537
+ },
538
+ "field_4": {
539
+ "field_type": "body",
540
+ "fields": {
541
+ "name": "message",
542
+ "type": "string",
543
+ "in": "body",
544
+ "description": "Required. The tag message."
545
+ }
546
+ },
547
+ "field_5": {
548
+ "field_type": "body",
549
+ "fields": {
550
+ "name": "object",
551
+ "type": "string",
552
+ "in": "body",
553
+ "description": "Required. The SHA of the git object this is tagging."
554
+ }
555
+ },
556
+ "field_6": {
557
+ "field_type": "body",
558
+ "fields": {
559
+ "name": "type",
560
+ "type": "string",
561
+ "in": "body",
562
+ "description": "Required. The type of the object we're tagging. Normally this is a commit but it can also be a tree or a blob."
563
+ }
564
+ },
565
+ "field_7": {
566
+ "field_type": "body",
567
+ "fields": {
568
+ "name": "tagger",
569
+ "type": "object",
570
+ "in": "body",
571
+ "description": "An object with information about the individual creating the tag."
572
+ }
573
+ },
574
+ "field_8": {
575
+ "field_type": null,
576
+ "fields": {
577
+ "name": "Properties of thetaggerobjectName (Type)Descriptionname (string)Required. The name of the author of the tagemail (string)Required. The email of the author of the tagdate (string)When this object was tagged. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.",
578
+ "type": null,
579
+ "in": null,
580
+ "description": null
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "namespace_description": "Get a tag",
586
+ "method": "get",
587
+ "endpoint": "/repos/{owner}/{repo}/git/tags/{tag_sha}",
588
+ "field_0": {
589
+ "field_type": "header",
590
+ "fields": {
591
+ "name": "accept",
592
+ "type": "string",
593
+ "in": "header",
594
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
595
+ }
596
+ },
597
+ "field_1": {
598
+ "field_type": "path",
599
+ "fields": {
600
+ "name": "owner",
601
+ "type": "string",
602
+ "in": "path",
603
+ "description": ""
604
+ }
605
+ },
606
+ "field_2": {
607
+ "field_type": "path",
608
+ "fields": {
609
+ "name": "repo",
610
+ "type": "string",
611
+ "in": "path",
612
+ "description": ""
613
+ }
614
+ },
615
+ "field_3": {
616
+ "field_type": "path",
617
+ "fields": {
618
+ "name": "tag_sha",
619
+ "type": "string",
620
+ "in": "path",
621
+ "description": ""
622
+ }
623
+ }
624
+ },
625
+ {
626
+ "namespace_description": "Create a tree",
627
+ "method": "post",
628
+ "endpoint": "/repos/{owner}/{repo}/git/trees",
629
+ "field_0": {
630
+ "field_type": "header",
631
+ "fields": {
632
+ "name": "accept",
633
+ "type": "string",
634
+ "in": "header",
635
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
636
+ }
637
+ },
638
+ "field_1": {
639
+ "field_type": "path",
640
+ "fields": {
641
+ "name": "owner",
642
+ "type": "string",
643
+ "in": "path",
644
+ "description": ""
645
+ }
646
+ },
647
+ "field_2": {
648
+ "field_type": "path",
649
+ "fields": {
650
+ "name": "repo",
651
+ "type": "string",
652
+ "in": "path",
653
+ "description": ""
654
+ }
655
+ },
656
+ "field_3": {
657
+ "field_type": "body",
658
+ "fields": {
659
+ "name": "tree",
660
+ "type": "array of objects",
661
+ "in": "body",
662
+ "description": "Required. Objects (of path, mode, type, and sha) specifying a tree structure."
663
+ }
664
+ },
665
+ "field_4": {
666
+ "field_type": null,
667
+ "fields": {
668
+ "name": "Properties of thetreeitemsName (Type)Descriptionpath (string)The file referenced in the tree.mode (string)The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.type (string)Either blob, tree, or commit.sha (string or null)The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted. \nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.content (string)The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha. \nNote: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.",
669
+ "type": null,
670
+ "in": null,
671
+ "description": null
672
+ }
673
+ },
674
+ "field_5": {
675
+ "field_type": "body",
676
+ "fields": {
677
+ "name": "base_tree",
678
+ "type": "string",
679
+ "in": "body",
680
+ "description": "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree and entries defined in the tree parameter. Entries defined in the tree parameter will overwrite items from base_tree with the same path. If you're creating new changes on a branch, then normally you'd set base_tree to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the tree parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the tree parameter will be listed as deleted by the new commit."
681
+ }
682
+ }
683
+ },
684
+ {
685
+ "namespace_description": "Get a tree",
686
+ "method": "get",
687
+ "endpoint": "/repos/{owner}/{repo}/git/trees/{tree_sha}",
688
+ "field_0": {
689
+ "field_type": "header",
690
+ "fields": {
691
+ "name": "accept",
692
+ "type": "string",
693
+ "in": "header",
694
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
695
+ }
696
+ },
697
+ "field_1": {
698
+ "field_type": "path",
699
+ "fields": {
700
+ "name": "owner",
701
+ "type": "string",
702
+ "in": "path",
703
+ "description": ""
704
+ }
705
+ },
706
+ "field_2": {
707
+ "field_type": "path",
708
+ "fields": {
709
+ "name": "repo",
710
+ "type": "string",
711
+ "in": "path",
712
+ "description": ""
713
+ }
714
+ },
715
+ "field_3": {
716
+ "field_type": "path",
717
+ "fields": {
718
+ "name": "tree_sha",
719
+ "type": "string",
720
+ "in": "path",
721
+ "description": ""
722
+ }
723
+ },
724
+ "field_4": {
725
+ "field_type": "query",
726
+ "fields": {
727
+ "name": "recursive",
728
+ "type": "string",
729
+ "in": "query",
730
+ "description": "Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in :tree_sha. For example, setting recursive to any of the following will enable returning objects or subtrees: 0, 1, \"true\", and \"false\". Omit this parameter to prevent recursively returning objects or subtrees."
731
+ }
732
+ }
733
+ }
734
+ ]
735
+ }