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,966 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List organization projects",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/projects",
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": "org",
20
+ "type": "string",
21
+ "in": "path",
22
+ "description": ""
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "state",
29
+ "type": "string",
30
+ "in": "query",
31
+ "description": "Indicates the state of the projects to return. Can be either open, closed, or all.Default: open"
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "per_page",
38
+ "type": "integer",
39
+ "in": "query",
40
+ "description": "Results per page (max 100)Default: 30"
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "page",
47
+ "type": "integer",
48
+ "in": "query",
49
+ "description": "Page number of the results to fetch.Default: 1"
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "namespace_description": "Create an organization project",
55
+ "method": "post",
56
+ "endpoint": "/orgs/{org}/projects",
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": "org",
70
+ "type": "string",
71
+ "in": "path",
72
+ "description": ""
73
+ }
74
+ },
75
+ "field_2": {
76
+ "field_type": "body",
77
+ "fields": {
78
+ "name": "name",
79
+ "type": "string",
80
+ "in": "body",
81
+ "description": "Required. The name of the project."
82
+ }
83
+ },
84
+ "field_3": {
85
+ "field_type": "body",
86
+ "fields": {
87
+ "name": "body",
88
+ "type": "string",
89
+ "in": "body",
90
+ "description": "The description of the project."
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "namespace_description": "Get a project",
96
+ "method": "get",
97
+ "endpoint": "/projects/{project_id}",
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": "project_id",
111
+ "type": "integer",
112
+ "in": "path",
113
+ "description": ""
114
+ }
115
+ }
116
+ },
117
+ {
118
+ "namespace_description": "Update a project",
119
+ "method": "patch",
120
+ "endpoint": "/projects/{project_id}",
121
+ "field_0": {
122
+ "field_type": "header",
123
+ "fields": {
124
+ "name": "accept",
125
+ "type": "string",
126
+ "in": "header",
127
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
128
+ }
129
+ },
130
+ "field_1": {
131
+ "field_type": "path",
132
+ "fields": {
133
+ "name": "project_id",
134
+ "type": "integer",
135
+ "in": "path",
136
+ "description": ""
137
+ }
138
+ },
139
+ "field_2": {
140
+ "field_type": "body",
141
+ "fields": {
142
+ "name": "name",
143
+ "type": "string",
144
+ "in": "body",
145
+ "description": "Name of the project"
146
+ }
147
+ },
148
+ "field_3": {
149
+ "field_type": "body",
150
+ "fields": {
151
+ "name": "body",
152
+ "type": "string or null",
153
+ "in": "body",
154
+ "description": "Body of the project"
155
+ }
156
+ },
157
+ "field_4": {
158
+ "field_type": "body",
159
+ "fields": {
160
+ "name": "state",
161
+ "type": "string",
162
+ "in": "body",
163
+ "description": "State of the project; either 'open' or 'closed'"
164
+ }
165
+ },
166
+ "field_5": {
167
+ "field_type": "body",
168
+ "fields": {
169
+ "name": "organization_permission",
170
+ "type": "string",
171
+ "in": "body",
172
+ "description": "The baseline permission that all organization members have on this project"
173
+ }
174
+ },
175
+ "field_6": {
176
+ "field_type": "body",
177
+ "fields": {
178
+ "name": "private",
179
+ "type": "boolean",
180
+ "in": "body",
181
+ "description": "Whether or not this project can be seen by everyone."
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "namespace_description": "Delete a project",
187
+ "method": "delete",
188
+ "endpoint": "/projects/{project_id}",
189
+ "field_0": {
190
+ "field_type": "header",
191
+ "fields": {
192
+ "name": "accept",
193
+ "type": "string",
194
+ "in": "header",
195
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
196
+ }
197
+ },
198
+ "field_1": {
199
+ "field_type": "path",
200
+ "fields": {
201
+ "name": "project_id",
202
+ "type": "integer",
203
+ "in": "path",
204
+ "description": ""
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "namespace_description": "List repository projects",
210
+ "method": "get",
211
+ "endpoint": "/repos/{owner}/{repo}/projects",
212
+ "field_0": {
213
+ "field_type": "header",
214
+ "fields": {
215
+ "name": "accept",
216
+ "type": "string",
217
+ "in": "header",
218
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
219
+ }
220
+ },
221
+ "field_1": {
222
+ "field_type": "path",
223
+ "fields": {
224
+ "name": "owner",
225
+ "type": "string",
226
+ "in": "path",
227
+ "description": ""
228
+ }
229
+ },
230
+ "field_2": {
231
+ "field_type": "path",
232
+ "fields": {
233
+ "name": "repo",
234
+ "type": "string",
235
+ "in": "path",
236
+ "description": ""
237
+ }
238
+ },
239
+ "field_3": {
240
+ "field_type": "query",
241
+ "fields": {
242
+ "name": "state",
243
+ "type": "string",
244
+ "in": "query",
245
+ "description": "Indicates the state of the projects to return. Can be either open, closed, or all.Default: open"
246
+ }
247
+ },
248
+ "field_4": {
249
+ "field_type": "query",
250
+ "fields": {
251
+ "name": "per_page",
252
+ "type": "integer",
253
+ "in": "query",
254
+ "description": "Results per page (max 100)Default: 30"
255
+ }
256
+ },
257
+ "field_5": {
258
+ "field_type": "query",
259
+ "fields": {
260
+ "name": "page",
261
+ "type": "integer",
262
+ "in": "query",
263
+ "description": "Page number of the results to fetch.Default: 1"
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "namespace_description": "Create a repository project",
269
+ "method": "post",
270
+ "endpoint": "/repos/{owner}/{repo}/projects",
271
+ "field_0": {
272
+ "field_type": "header",
273
+ "fields": {
274
+ "name": "accept",
275
+ "type": "string",
276
+ "in": "header",
277
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
278
+ }
279
+ },
280
+ "field_1": {
281
+ "field_type": "path",
282
+ "fields": {
283
+ "name": "owner",
284
+ "type": "string",
285
+ "in": "path",
286
+ "description": ""
287
+ }
288
+ },
289
+ "field_2": {
290
+ "field_type": "path",
291
+ "fields": {
292
+ "name": "repo",
293
+ "type": "string",
294
+ "in": "path",
295
+ "description": ""
296
+ }
297
+ },
298
+ "field_3": {
299
+ "field_type": "body",
300
+ "fields": {
301
+ "name": "name",
302
+ "type": "string",
303
+ "in": "body",
304
+ "description": "Required. The name of the project."
305
+ }
306
+ },
307
+ "field_4": {
308
+ "field_type": "body",
309
+ "fields": {
310
+ "name": "body",
311
+ "type": "string",
312
+ "in": "body",
313
+ "description": "The description of the project."
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "namespace_description": "Create a user project",
319
+ "method": "post",
320
+ "endpoint": "/user/projects",
321
+ "field_0": {
322
+ "field_type": "header",
323
+ "fields": {
324
+ "name": "accept",
325
+ "type": "string",
326
+ "in": "header",
327
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
328
+ }
329
+ },
330
+ "field_1": {
331
+ "field_type": "body",
332
+ "fields": {
333
+ "name": "name",
334
+ "type": "string",
335
+ "in": "body",
336
+ "description": "Required. Name of the project"
337
+ }
338
+ },
339
+ "field_2": {
340
+ "field_type": "body",
341
+ "fields": {
342
+ "name": "body",
343
+ "type": "string or null",
344
+ "in": "body",
345
+ "description": "Body of the project"
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "namespace_description": "List user projects",
351
+ "method": "get",
352
+ "endpoint": "/users/{username}/projects",
353
+ "field_0": {
354
+ "field_type": "header",
355
+ "fields": {
356
+ "name": "accept",
357
+ "type": "string",
358
+ "in": "header",
359
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
360
+ }
361
+ },
362
+ "field_1": {
363
+ "field_type": "path",
364
+ "fields": {
365
+ "name": "username",
366
+ "type": "string",
367
+ "in": "path",
368
+ "description": ""
369
+ }
370
+ },
371
+ "field_2": {
372
+ "field_type": "query",
373
+ "fields": {
374
+ "name": "state",
375
+ "type": "string",
376
+ "in": "query",
377
+ "description": "Indicates the state of the projects to return. Can be either open, closed, or all.Default: open"
378
+ }
379
+ },
380
+ "field_3": {
381
+ "field_type": "query",
382
+ "fields": {
383
+ "name": "per_page",
384
+ "type": "integer",
385
+ "in": "query",
386
+ "description": "Results per page (max 100)Default: 30"
387
+ }
388
+ },
389
+ "field_4": {
390
+ "field_type": "query",
391
+ "fields": {
392
+ "name": "page",
393
+ "type": "integer",
394
+ "in": "query",
395
+ "description": "Page number of the results to fetch.Default: 1"
396
+ }
397
+ }
398
+ },
399
+ {
400
+ "namespace_description": "Get a project card",
401
+ "method": "get",
402
+ "endpoint": "/projects/columns/cards/{card_id}",
403
+ "field_0": {
404
+ "field_type": "header",
405
+ "fields": {
406
+ "name": "accept",
407
+ "type": "string",
408
+ "in": "header",
409
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
410
+ }
411
+ },
412
+ "field_1": {
413
+ "field_type": "path",
414
+ "fields": {
415
+ "name": "card_id",
416
+ "type": "integer",
417
+ "in": "path",
418
+ "description": "card_id parameter"
419
+ }
420
+ }
421
+ },
422
+ {
423
+ "namespace_description": "Update an existing project card",
424
+ "method": "patch",
425
+ "endpoint": "/projects/columns/cards/{card_id}",
426
+ "field_0": {
427
+ "field_type": "header",
428
+ "fields": {
429
+ "name": "accept",
430
+ "type": "string",
431
+ "in": "header",
432
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
433
+ }
434
+ },
435
+ "field_1": {
436
+ "field_type": "path",
437
+ "fields": {
438
+ "name": "card_id",
439
+ "type": "integer",
440
+ "in": "path",
441
+ "description": "card_id parameter"
442
+ }
443
+ },
444
+ "field_2": {
445
+ "field_type": "body",
446
+ "fields": {
447
+ "name": "note",
448
+ "type": "string or null",
449
+ "in": "body",
450
+ "description": "The project card's note"
451
+ }
452
+ },
453
+ "field_3": {
454
+ "field_type": "body",
455
+ "fields": {
456
+ "name": "archived",
457
+ "type": "boolean",
458
+ "in": "body",
459
+ "description": "Whether or not the card is archived"
460
+ }
461
+ }
462
+ },
463
+ {
464
+ "namespace_description": "Delete a project card",
465
+ "method": "delete",
466
+ "endpoint": "/projects/columns/cards/{card_id}",
467
+ "field_0": {
468
+ "field_type": "header",
469
+ "fields": {
470
+ "name": "accept",
471
+ "type": "string",
472
+ "in": "header",
473
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
474
+ }
475
+ },
476
+ "field_1": {
477
+ "field_type": "path",
478
+ "fields": {
479
+ "name": "card_id",
480
+ "type": "integer",
481
+ "in": "path",
482
+ "description": "card_id parameter"
483
+ }
484
+ }
485
+ },
486
+ {
487
+ "namespace_description": "Move a project card",
488
+ "method": "post",
489
+ "endpoint": "/projects/columns/cards/{card_id}/moves",
490
+ "field_0": {
491
+ "field_type": "header",
492
+ "fields": {
493
+ "name": "accept",
494
+ "type": "string",
495
+ "in": "header",
496
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
497
+ }
498
+ },
499
+ "field_1": {
500
+ "field_type": "path",
501
+ "fields": {
502
+ "name": "card_id",
503
+ "type": "integer",
504
+ "in": "path",
505
+ "description": "card_id parameter"
506
+ }
507
+ },
508
+ "field_2": {
509
+ "field_type": "body",
510
+ "fields": {
511
+ "name": "position",
512
+ "type": "string",
513
+ "in": "body",
514
+ "description": "Required. The position of the card in a column. Can be one of: top, bottom, or after:<card_id> to place after the specified card."
515
+ }
516
+ },
517
+ "field_3": {
518
+ "field_type": "body",
519
+ "fields": {
520
+ "name": "column_id",
521
+ "type": "integer",
522
+ "in": "body",
523
+ "description": "The unique identifier of the column the card should be moved to"
524
+ }
525
+ }
526
+ },
527
+ {
528
+ "namespace_description": "List project cards",
529
+ "method": "get",
530
+ "endpoint": "/projects/columns/{column_id}/cards",
531
+ "field_0": {
532
+ "field_type": "header",
533
+ "fields": {
534
+ "name": "accept",
535
+ "type": "string",
536
+ "in": "header",
537
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
538
+ }
539
+ },
540
+ "field_1": {
541
+ "field_type": "path",
542
+ "fields": {
543
+ "name": "column_id",
544
+ "type": "integer",
545
+ "in": "path",
546
+ "description": "column_id parameter"
547
+ }
548
+ },
549
+ "field_2": {
550
+ "field_type": "query",
551
+ "fields": {
552
+ "name": "archived_state",
553
+ "type": "string",
554
+ "in": "query",
555
+ "description": "Filters the project cards that are returned by the card's state. Can be one of all,archived, or not_archived.Default: not_archived"
556
+ }
557
+ },
558
+ "field_3": {
559
+ "field_type": "query",
560
+ "fields": {
561
+ "name": "per_page",
562
+ "type": "integer",
563
+ "in": "query",
564
+ "description": "Results per page (max 100)Default: 30"
565
+ }
566
+ },
567
+ "field_4": {
568
+ "field_type": "query",
569
+ "fields": {
570
+ "name": "page",
571
+ "type": "integer",
572
+ "in": "query",
573
+ "description": "Page number of the results to fetch.Default: 1"
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "namespace_description": "Create a project card",
579
+ "method": "post",
580
+ "endpoint": "/projects/columns/{column_id}/cards",
581
+ "field_0": {
582
+ "field_type": "header",
583
+ "fields": {
584
+ "name": "accept",
585
+ "type": "string",
586
+ "in": "header",
587
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
588
+ }
589
+ },
590
+ "field_1": {
591
+ "field_type": "path",
592
+ "fields": {
593
+ "name": "column_id",
594
+ "type": "integer",
595
+ "in": "path",
596
+ "description": "column_id parameter"
597
+ }
598
+ },
599
+ "field_2": {
600
+ "field_type": "body",
601
+ "fields": {
602
+ "name": "note",
603
+ "type": "string or null",
604
+ "in": "body",
605
+ "description": "Required. The project card's note"
606
+ }
607
+ },
608
+ "field_3": {
609
+ "field_type": "body",
610
+ "fields": {
611
+ "name": "content_id",
612
+ "type": "integer",
613
+ "in": "body",
614
+ "description": "Required. The unique identifier of the content associated with the card"
615
+ }
616
+ },
617
+ "field_4": {
618
+ "field_type": "body",
619
+ "fields": {
620
+ "name": "content_type",
621
+ "type": "string",
622
+ "in": "body",
623
+ "description": "Required. The piece of content associated with the card"
624
+ }
625
+ }
626
+ },
627
+ {
628
+ "namespace_description": "List project collaborators",
629
+ "method": "get",
630
+ "endpoint": "/projects/{project_id}/collaborators",
631
+ "field_0": {
632
+ "field_type": "header",
633
+ "fields": {
634
+ "name": "accept",
635
+ "type": "string",
636
+ "in": "header",
637
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
638
+ }
639
+ },
640
+ "field_1": {
641
+ "field_type": "path",
642
+ "fields": {
643
+ "name": "project_id",
644
+ "type": "integer",
645
+ "in": "path",
646
+ "description": ""
647
+ }
648
+ },
649
+ "field_2": {
650
+ "field_type": "query",
651
+ "fields": {
652
+ "name": "affiliation",
653
+ "type": "string",
654
+ "in": "query",
655
+ "description": "Filters the collaborators by their affiliation. Can be one of:\n* outside: Outside collaborators of a project that are not a member of the project's organization.\n* direct: Collaborators with permissions to a project, regardless of organization membership status.\n* all: All collaborators the authenticated user can see.Default: all"
656
+ }
657
+ },
658
+ "field_3": {
659
+ "field_type": "query",
660
+ "fields": {
661
+ "name": "per_page",
662
+ "type": "integer",
663
+ "in": "query",
664
+ "description": "Results per page (max 100)Default: 30"
665
+ }
666
+ },
667
+ "field_4": {
668
+ "field_type": "query",
669
+ "fields": {
670
+ "name": "page",
671
+ "type": "integer",
672
+ "in": "query",
673
+ "description": "Page number of the results to fetch.Default: 1"
674
+ }
675
+ }
676
+ },
677
+ {
678
+ "namespace_description": "Add project collaborator",
679
+ "method": "put",
680
+ "endpoint": "/projects/{project_id}/collaborators/{username}",
681
+ "field_0": {
682
+ "field_type": "header",
683
+ "fields": {
684
+ "name": "accept",
685
+ "type": "string",
686
+ "in": "header",
687
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
688
+ }
689
+ },
690
+ "field_1": {
691
+ "field_type": "path",
692
+ "fields": {
693
+ "name": "project_id",
694
+ "type": "integer",
695
+ "in": "path",
696
+ "description": ""
697
+ }
698
+ },
699
+ "field_2": {
700
+ "field_type": "path",
701
+ "fields": {
702
+ "name": "username",
703
+ "type": "string",
704
+ "in": "path",
705
+ "description": ""
706
+ }
707
+ },
708
+ "field_3": {
709
+ "field_type": "body",
710
+ "fields": {
711
+ "name": "permission",
712
+ "type": "string",
713
+ "in": "body",
714
+ "description": "The permission to grant the collaborator.Default: write"
715
+ }
716
+ }
717
+ },
718
+ {
719
+ "namespace_description": "Remove user as a collaborator",
720
+ "method": "delete",
721
+ "endpoint": "/projects/{project_id}/collaborators/{username}",
722
+ "field_0": {
723
+ "field_type": "header",
724
+ "fields": {
725
+ "name": "accept",
726
+ "type": "string",
727
+ "in": "header",
728
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
729
+ }
730
+ },
731
+ "field_1": {
732
+ "field_type": "path",
733
+ "fields": {
734
+ "name": "project_id",
735
+ "type": "integer",
736
+ "in": "path",
737
+ "description": ""
738
+ }
739
+ },
740
+ "field_2": {
741
+ "field_type": "path",
742
+ "fields": {
743
+ "name": "username",
744
+ "type": "string",
745
+ "in": "path",
746
+ "description": ""
747
+ }
748
+ }
749
+ },
750
+ {
751
+ "namespace_description": "Get project permission for a user",
752
+ "method": "get",
753
+ "endpoint": "/projects/{project_id}/collaborators/{username}/permission",
754
+ "field_0": {
755
+ "field_type": "header",
756
+ "fields": {
757
+ "name": "accept",
758
+ "type": "string",
759
+ "in": "header",
760
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
761
+ }
762
+ },
763
+ "field_1": {
764
+ "field_type": "path",
765
+ "fields": {
766
+ "name": "project_id",
767
+ "type": "integer",
768
+ "in": "path",
769
+ "description": ""
770
+ }
771
+ },
772
+ "field_2": {
773
+ "field_type": "path",
774
+ "fields": {
775
+ "name": "username",
776
+ "type": "string",
777
+ "in": "path",
778
+ "description": ""
779
+ }
780
+ }
781
+ },
782
+ {
783
+ "namespace_description": "Get a project column",
784
+ "method": "get",
785
+ "endpoint": "/projects/columns/{column_id}",
786
+ "field_0": {
787
+ "field_type": "header",
788
+ "fields": {
789
+ "name": "accept",
790
+ "type": "string",
791
+ "in": "header",
792
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
793
+ }
794
+ },
795
+ "field_1": {
796
+ "field_type": "path",
797
+ "fields": {
798
+ "name": "column_id",
799
+ "type": "integer",
800
+ "in": "path",
801
+ "description": "column_id parameter"
802
+ }
803
+ }
804
+ },
805
+ {
806
+ "namespace_description": "Update an existing project column",
807
+ "method": "patch",
808
+ "endpoint": "/projects/columns/{column_id}",
809
+ "field_0": {
810
+ "field_type": "header",
811
+ "fields": {
812
+ "name": "accept",
813
+ "type": "string",
814
+ "in": "header",
815
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
816
+ }
817
+ },
818
+ "field_1": {
819
+ "field_type": "path",
820
+ "fields": {
821
+ "name": "column_id",
822
+ "type": "integer",
823
+ "in": "path",
824
+ "description": "column_id parameter"
825
+ }
826
+ },
827
+ "field_2": {
828
+ "field_type": "body",
829
+ "fields": {
830
+ "name": "name",
831
+ "type": "string",
832
+ "in": "body",
833
+ "description": "Required. Name of the project column"
834
+ }
835
+ }
836
+ },
837
+ {
838
+ "namespace_description": "Delete a project column",
839
+ "method": "delete",
840
+ "endpoint": "/projects/columns/{column_id}",
841
+ "field_0": {
842
+ "field_type": "header",
843
+ "fields": {
844
+ "name": "accept",
845
+ "type": "string",
846
+ "in": "header",
847
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
848
+ }
849
+ },
850
+ "field_1": {
851
+ "field_type": "path",
852
+ "fields": {
853
+ "name": "column_id",
854
+ "type": "integer",
855
+ "in": "path",
856
+ "description": "column_id parameter"
857
+ }
858
+ }
859
+ },
860
+ {
861
+ "namespace_description": "Move a project column",
862
+ "method": "post",
863
+ "endpoint": "/projects/columns/{column_id}/moves",
864
+ "field_0": {
865
+ "field_type": "header",
866
+ "fields": {
867
+ "name": "accept",
868
+ "type": "string",
869
+ "in": "header",
870
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
871
+ }
872
+ },
873
+ "field_1": {
874
+ "field_type": "path",
875
+ "fields": {
876
+ "name": "column_id",
877
+ "type": "integer",
878
+ "in": "path",
879
+ "description": "column_id parameter"
880
+ }
881
+ },
882
+ "field_2": {
883
+ "field_type": "body",
884
+ "fields": {
885
+ "name": "position",
886
+ "type": "string",
887
+ "in": "body",
888
+ "description": "Required. The position of the column in a project. Can be one of: first, last, or after:<column_id> to place after the specified column."
889
+ }
890
+ }
891
+ },
892
+ {
893
+ "namespace_description": "List project columns",
894
+ "method": "get",
895
+ "endpoint": "/projects/{project_id}/columns",
896
+ "field_0": {
897
+ "field_type": "header",
898
+ "fields": {
899
+ "name": "accept",
900
+ "type": "string",
901
+ "in": "header",
902
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
903
+ }
904
+ },
905
+ "field_1": {
906
+ "field_type": "path",
907
+ "fields": {
908
+ "name": "project_id",
909
+ "type": "integer",
910
+ "in": "path",
911
+ "description": ""
912
+ }
913
+ },
914
+ "field_2": {
915
+ "field_type": "query",
916
+ "fields": {
917
+ "name": "per_page",
918
+ "type": "integer",
919
+ "in": "query",
920
+ "description": "Results per page (max 100)Default: 30"
921
+ }
922
+ },
923
+ "field_3": {
924
+ "field_type": "query",
925
+ "fields": {
926
+ "name": "page",
927
+ "type": "integer",
928
+ "in": "query",
929
+ "description": "Page number of the results to fetch.Default: 1"
930
+ }
931
+ }
932
+ },
933
+ {
934
+ "namespace_description": "Create a project column",
935
+ "method": "post",
936
+ "endpoint": "/projects/{project_id}/columns",
937
+ "field_0": {
938
+ "field_type": "header",
939
+ "fields": {
940
+ "name": "accept",
941
+ "type": "string",
942
+ "in": "header",
943
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
944
+ }
945
+ },
946
+ "field_1": {
947
+ "field_type": "path",
948
+ "fields": {
949
+ "name": "project_id",
950
+ "type": "integer",
951
+ "in": "path",
952
+ "description": ""
953
+ }
954
+ },
955
+ "field_2": {
956
+ "field_type": "body",
957
+ "fields": {
958
+ "name": "name",
959
+ "type": "string",
960
+ "in": "body",
961
+ "description": "Required. Name of the project column"
962
+ }
963
+ }
964
+ }
965
+ ]
966
+ }