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,1248 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List public events",
5
+ "method": "get",
6
+ "endpoint": "/events",
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": "query",
18
+ "fields": {
19
+ "name": "per_page",
20
+ "type": "integer",
21
+ "in": "query",
22
+ "description": "Results per page (max 100)Default: 30"
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "page",
29
+ "type": "integer",
30
+ "in": "query",
31
+ "description": "Page number of the results to fetch.Default: 1"
32
+ }
33
+ }
34
+ },
35
+ {
36
+ "namespace_description": "List public events for a network of repositories",
37
+ "method": "get",
38
+ "endpoint": "/networks/{owner}/{repo}/events",
39
+ "field_0": {
40
+ "field_type": "header",
41
+ "fields": {
42
+ "name": "accept",
43
+ "type": "string",
44
+ "in": "header",
45
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
46
+ }
47
+ },
48
+ "field_1": {
49
+ "field_type": "path",
50
+ "fields": {
51
+ "name": "owner",
52
+ "type": "string",
53
+ "in": "path",
54
+ "description": ""
55
+ }
56
+ },
57
+ "field_2": {
58
+ "field_type": "path",
59
+ "fields": {
60
+ "name": "repo",
61
+ "type": "string",
62
+ "in": "path",
63
+ "description": ""
64
+ }
65
+ },
66
+ "field_3": {
67
+ "field_type": "query",
68
+ "fields": {
69
+ "name": "per_page",
70
+ "type": "integer",
71
+ "in": "query",
72
+ "description": "Results per page (max 100)Default: 30"
73
+ }
74
+ },
75
+ "field_4": {
76
+ "field_type": "query",
77
+ "fields": {
78
+ "name": "page",
79
+ "type": "integer",
80
+ "in": "query",
81
+ "description": "Page number of the results to fetch.Default: 1"
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "namespace_description": "List public organization events",
87
+ "method": "get",
88
+ "endpoint": "/orgs/{org}/events",
89
+ "field_0": {
90
+ "field_type": "header",
91
+ "fields": {
92
+ "name": "accept",
93
+ "type": "string",
94
+ "in": "header",
95
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
96
+ }
97
+ },
98
+ "field_1": {
99
+ "field_type": "path",
100
+ "fields": {
101
+ "name": "org",
102
+ "type": "string",
103
+ "in": "path",
104
+ "description": ""
105
+ }
106
+ },
107
+ "field_2": {
108
+ "field_type": "query",
109
+ "fields": {
110
+ "name": "per_page",
111
+ "type": "integer",
112
+ "in": "query",
113
+ "description": "Results per page (max 100)Default: 30"
114
+ }
115
+ },
116
+ "field_3": {
117
+ "field_type": "query",
118
+ "fields": {
119
+ "name": "page",
120
+ "type": "integer",
121
+ "in": "query",
122
+ "description": "Page number of the results to fetch.Default: 1"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "namespace_description": "List repository events",
128
+ "method": "get",
129
+ "endpoint": "/repos/{owner}/{repo}/events",
130
+ "field_0": {
131
+ "field_type": "header",
132
+ "fields": {
133
+ "name": "accept",
134
+ "type": "string",
135
+ "in": "header",
136
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
137
+ }
138
+ },
139
+ "field_1": {
140
+ "field_type": "path",
141
+ "fields": {
142
+ "name": "owner",
143
+ "type": "string",
144
+ "in": "path",
145
+ "description": ""
146
+ }
147
+ },
148
+ "field_2": {
149
+ "field_type": "path",
150
+ "fields": {
151
+ "name": "repo",
152
+ "type": "string",
153
+ "in": "path",
154
+ "description": ""
155
+ }
156
+ },
157
+ "field_3": {
158
+ "field_type": "query",
159
+ "fields": {
160
+ "name": "per_page",
161
+ "type": "integer",
162
+ "in": "query",
163
+ "description": "Results per page (max 100)Default: 30"
164
+ }
165
+ },
166
+ "field_4": {
167
+ "field_type": "query",
168
+ "fields": {
169
+ "name": "page",
170
+ "type": "integer",
171
+ "in": "query",
172
+ "description": "Page number of the results to fetch.Default: 1"
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "namespace_description": "List events for the authenticated user",
178
+ "method": "get",
179
+ "endpoint": "/users/{username}/events",
180
+ "field_0": {
181
+ "field_type": "header",
182
+ "fields": {
183
+ "name": "accept",
184
+ "type": "string",
185
+ "in": "header",
186
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
187
+ }
188
+ },
189
+ "field_1": {
190
+ "field_type": "path",
191
+ "fields": {
192
+ "name": "username",
193
+ "type": "string",
194
+ "in": "path",
195
+ "description": ""
196
+ }
197
+ },
198
+ "field_2": {
199
+ "field_type": "query",
200
+ "fields": {
201
+ "name": "per_page",
202
+ "type": "integer",
203
+ "in": "query",
204
+ "description": "Results per page (max 100)Default: 30"
205
+ }
206
+ },
207
+ "field_3": {
208
+ "field_type": "query",
209
+ "fields": {
210
+ "name": "page",
211
+ "type": "integer",
212
+ "in": "query",
213
+ "description": "Page number of the results to fetch.Default: 1"
214
+ }
215
+ }
216
+ },
217
+ {
218
+ "namespace_description": "List organization events for the authenticated user",
219
+ "method": "get",
220
+ "endpoint": "/users/{username}/events/orgs/{org}",
221
+ "field_0": {
222
+ "field_type": "header",
223
+ "fields": {
224
+ "name": "accept",
225
+ "type": "string",
226
+ "in": "header",
227
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
228
+ }
229
+ },
230
+ "field_1": {
231
+ "field_type": "path",
232
+ "fields": {
233
+ "name": "username",
234
+ "type": "string",
235
+ "in": "path",
236
+ "description": ""
237
+ }
238
+ },
239
+ "field_2": {
240
+ "field_type": "path",
241
+ "fields": {
242
+ "name": "org",
243
+ "type": "string",
244
+ "in": "path",
245
+ "description": ""
246
+ }
247
+ },
248
+ "field_3": {
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_4": {
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": "List public events for a user",
269
+ "method": "get",
270
+ "endpoint": "/users/{username}/events/public",
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": "username",
284
+ "type": "string",
285
+ "in": "path",
286
+ "description": ""
287
+ }
288
+ },
289
+ "field_2": {
290
+ "field_type": "query",
291
+ "fields": {
292
+ "name": "per_page",
293
+ "type": "integer",
294
+ "in": "query",
295
+ "description": "Results per page (max 100)Default: 30"
296
+ }
297
+ },
298
+ "field_3": {
299
+ "field_type": "query",
300
+ "fields": {
301
+ "name": "page",
302
+ "type": "integer",
303
+ "in": "query",
304
+ "description": "Page number of the results to fetch.Default: 1"
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "namespace_description": "List events received by the authenticated user",
310
+ "method": "get",
311
+ "endpoint": "/users/{username}/received_events",
312
+ "field_0": {
313
+ "field_type": "header",
314
+ "fields": {
315
+ "name": "accept",
316
+ "type": "string",
317
+ "in": "header",
318
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
319
+ }
320
+ },
321
+ "field_1": {
322
+ "field_type": "path",
323
+ "fields": {
324
+ "name": "username",
325
+ "type": "string",
326
+ "in": "path",
327
+ "description": ""
328
+ }
329
+ },
330
+ "field_2": {
331
+ "field_type": "query",
332
+ "fields": {
333
+ "name": "per_page",
334
+ "type": "integer",
335
+ "in": "query",
336
+ "description": "Results per page (max 100)Default: 30"
337
+ }
338
+ },
339
+ "field_3": {
340
+ "field_type": "query",
341
+ "fields": {
342
+ "name": "page",
343
+ "type": "integer",
344
+ "in": "query",
345
+ "description": "Page number of the results to fetch.Default: 1"
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "namespace_description": "List public events received by a user",
351
+ "method": "get",
352
+ "endpoint": "/users/{username}/received_events/public",
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": "per_page",
375
+ "type": "integer",
376
+ "in": "query",
377
+ "description": "Results per page (max 100)Default: 30"
378
+ }
379
+ },
380
+ "field_3": {
381
+ "field_type": "query",
382
+ "fields": {
383
+ "name": "page",
384
+ "type": "integer",
385
+ "in": "query",
386
+ "description": "Page number of the results to fetch.Default: 1"
387
+ }
388
+ }
389
+ },
390
+ {
391
+ "namespace_description": "Get feeds",
392
+ "method": "get",
393
+ "endpoint": "/feeds",
394
+ "field_0": {
395
+ "field_type": "header",
396
+ "fields": {
397
+ "name": "accept",
398
+ "type": "string",
399
+ "in": "header",
400
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
401
+ }
402
+ }
403
+ },
404
+ {
405
+ "namespace_description": "List notifications for the authenticated user",
406
+ "method": "get",
407
+ "endpoint": "/notifications",
408
+ "field_0": {
409
+ "field_type": "header",
410
+ "fields": {
411
+ "name": "accept",
412
+ "type": "string",
413
+ "in": "header",
414
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
415
+ }
416
+ },
417
+ "field_1": {
418
+ "field_type": "query",
419
+ "fields": {
420
+ "name": "all",
421
+ "type": "boolean",
422
+ "in": "query",
423
+ "description": "If true, show notifications marked as read."
424
+ }
425
+ },
426
+ "field_2": {
427
+ "field_type": "query",
428
+ "fields": {
429
+ "name": "participating",
430
+ "type": "boolean",
431
+ "in": "query",
432
+ "description": "If true, only shows notifications in which the user is directly participating or mentioned."
433
+ }
434
+ },
435
+ "field_3": {
436
+ "field_type": "query",
437
+ "fields": {
438
+ "name": "since",
439
+ "type": "string",
440
+ "in": "query",
441
+ "description": "Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
442
+ }
443
+ },
444
+ "field_4": {
445
+ "field_type": "query",
446
+ "fields": {
447
+ "name": "before",
448
+ "type": "string",
449
+ "in": "query",
450
+ "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
451
+ }
452
+ },
453
+ "field_5": {
454
+ "field_type": "query",
455
+ "fields": {
456
+ "name": "per_page",
457
+ "type": "integer",
458
+ "in": "query",
459
+ "description": "Results per page (max 100)Default: 30"
460
+ }
461
+ },
462
+ "field_6": {
463
+ "field_type": "query",
464
+ "fields": {
465
+ "name": "page",
466
+ "type": "integer",
467
+ "in": "query",
468
+ "description": "Page number of the results to fetch.Default: 1"
469
+ }
470
+ }
471
+ },
472
+ {
473
+ "namespace_description": "Mark notifications as read",
474
+ "method": "put",
475
+ "endpoint": "/notifications",
476
+ "field_0": {
477
+ "field_type": "header",
478
+ "fields": {
479
+ "name": "accept",
480
+ "type": "string",
481
+ "in": "header",
482
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
483
+ }
484
+ },
485
+ "field_1": {
486
+ "field_type": "body",
487
+ "fields": {
488
+ "name": "last_read_at",
489
+ "type": "string",
490
+ "in": "body",
491
+ "description": "Describes the last point that notifications were checked."
492
+ }
493
+ },
494
+ "field_2": {
495
+ "field_type": "body",
496
+ "fields": {
497
+ "name": "read",
498
+ "type": "boolean",
499
+ "in": "body",
500
+ "description": "Whether the notification has been read."
501
+ }
502
+ }
503
+ },
504
+ {
505
+ "namespace_description": "Get a thread",
506
+ "method": "get",
507
+ "endpoint": "/notifications/threads/{thread_id}",
508
+ "field_0": {
509
+ "field_type": "header",
510
+ "fields": {
511
+ "name": "accept",
512
+ "type": "string",
513
+ "in": "header",
514
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
515
+ }
516
+ },
517
+ "field_1": {
518
+ "field_type": "path",
519
+ "fields": {
520
+ "name": "thread_id",
521
+ "type": "integer",
522
+ "in": "path",
523
+ "description": "thread_id parameter"
524
+ }
525
+ }
526
+ },
527
+ {
528
+ "namespace_description": "Mark a thread as read",
529
+ "method": "patch",
530
+ "endpoint": "/notifications/threads/{thread_id}",
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": "thread_id",
544
+ "type": "integer",
545
+ "in": "path",
546
+ "description": "thread_id parameter"
547
+ }
548
+ }
549
+ },
550
+ {
551
+ "namespace_description": "Get a thread subscription for the authenticated user",
552
+ "method": "get",
553
+ "endpoint": "/notifications/threads/{thread_id}/subscription",
554
+ "field_0": {
555
+ "field_type": "header",
556
+ "fields": {
557
+ "name": "accept",
558
+ "type": "string",
559
+ "in": "header",
560
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
561
+ }
562
+ },
563
+ "field_1": {
564
+ "field_type": "path",
565
+ "fields": {
566
+ "name": "thread_id",
567
+ "type": "integer",
568
+ "in": "path",
569
+ "description": "thread_id parameter"
570
+ }
571
+ }
572
+ },
573
+ {
574
+ "namespace_description": "Set a thread subscription",
575
+ "method": "put",
576
+ "endpoint": "/notifications/threads/{thread_id}/subscription",
577
+ "field_0": {
578
+ "field_type": "header",
579
+ "fields": {
580
+ "name": "accept",
581
+ "type": "string",
582
+ "in": "header",
583
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
584
+ }
585
+ },
586
+ "field_1": {
587
+ "field_type": "path",
588
+ "fields": {
589
+ "name": "thread_id",
590
+ "type": "integer",
591
+ "in": "path",
592
+ "description": "thread_id parameter"
593
+ }
594
+ },
595
+ "field_2": {
596
+ "field_type": "body",
597
+ "fields": {
598
+ "name": "ignored",
599
+ "type": "boolean",
600
+ "in": "body",
601
+ "description": "Whether to block all notifications from a thread."
602
+ }
603
+ }
604
+ },
605
+ {
606
+ "namespace_description": "Delete a thread subscription",
607
+ "method": "delete",
608
+ "endpoint": "/notifications/threads/{thread_id}/subscription",
609
+ "field_0": {
610
+ "field_type": "header",
611
+ "fields": {
612
+ "name": "accept",
613
+ "type": "string",
614
+ "in": "header",
615
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
616
+ }
617
+ },
618
+ "field_1": {
619
+ "field_type": "path",
620
+ "fields": {
621
+ "name": "thread_id",
622
+ "type": "integer",
623
+ "in": "path",
624
+ "description": "thread_id parameter"
625
+ }
626
+ }
627
+ },
628
+ {
629
+ "namespace_description": "List repository notifications for the authenticated user",
630
+ "method": "get",
631
+ "endpoint": "/repos/{owner}/{repo}/notifications",
632
+ "field_0": {
633
+ "field_type": "header",
634
+ "fields": {
635
+ "name": "accept",
636
+ "type": "string",
637
+ "in": "header",
638
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
639
+ }
640
+ },
641
+ "field_1": {
642
+ "field_type": "path",
643
+ "fields": {
644
+ "name": "owner",
645
+ "type": "string",
646
+ "in": "path",
647
+ "description": ""
648
+ }
649
+ },
650
+ "field_2": {
651
+ "field_type": "path",
652
+ "fields": {
653
+ "name": "repo",
654
+ "type": "string",
655
+ "in": "path",
656
+ "description": ""
657
+ }
658
+ },
659
+ "field_3": {
660
+ "field_type": "query",
661
+ "fields": {
662
+ "name": "all",
663
+ "type": "boolean",
664
+ "in": "query",
665
+ "description": "If true, show notifications marked as read."
666
+ }
667
+ },
668
+ "field_4": {
669
+ "field_type": "query",
670
+ "fields": {
671
+ "name": "participating",
672
+ "type": "boolean",
673
+ "in": "query",
674
+ "description": "If true, only shows notifications in which the user is directly participating or mentioned."
675
+ }
676
+ },
677
+ "field_5": {
678
+ "field_type": "query",
679
+ "fields": {
680
+ "name": "since",
681
+ "type": "string",
682
+ "in": "query",
683
+ "description": "Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
684
+ }
685
+ },
686
+ "field_6": {
687
+ "field_type": "query",
688
+ "fields": {
689
+ "name": "before",
690
+ "type": "string",
691
+ "in": "query",
692
+ "description": "Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
693
+ }
694
+ },
695
+ "field_7": {
696
+ "field_type": "query",
697
+ "fields": {
698
+ "name": "per_page",
699
+ "type": "integer",
700
+ "in": "query",
701
+ "description": "Results per page (max 100)Default: 30"
702
+ }
703
+ },
704
+ "field_8": {
705
+ "field_type": "query",
706
+ "fields": {
707
+ "name": "page",
708
+ "type": "integer",
709
+ "in": "query",
710
+ "description": "Page number of the results to fetch.Default: 1"
711
+ }
712
+ }
713
+ },
714
+ {
715
+ "namespace_description": "Mark repository notifications as read",
716
+ "method": "put",
717
+ "endpoint": "/repos/{owner}/{repo}/notifications",
718
+ "field_0": {
719
+ "field_type": "header",
720
+ "fields": {
721
+ "name": "accept",
722
+ "type": "string",
723
+ "in": "header",
724
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
725
+ }
726
+ },
727
+ "field_1": {
728
+ "field_type": "path",
729
+ "fields": {
730
+ "name": "owner",
731
+ "type": "string",
732
+ "in": "path",
733
+ "description": ""
734
+ }
735
+ },
736
+ "field_2": {
737
+ "field_type": "path",
738
+ "fields": {
739
+ "name": "repo",
740
+ "type": "string",
741
+ "in": "path",
742
+ "description": ""
743
+ }
744
+ },
745
+ "field_3": {
746
+ "field_type": "body",
747
+ "fields": {
748
+ "name": "last_read_at",
749
+ "type": "string",
750
+ "in": "body",
751
+ "description": "Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: The current timestamp."
752
+ }
753
+ }
754
+ },
755
+ {
756
+ "namespace_description": "List stargazers",
757
+ "method": "get",
758
+ "endpoint": "/repos/{owner}/{repo}/stargazers",
759
+ "field_0": {
760
+ "field_type": "header",
761
+ "fields": {
762
+ "name": "accept",
763
+ "type": "string",
764
+ "in": "header",
765
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
766
+ }
767
+ },
768
+ "field_1": {
769
+ "field_type": "path",
770
+ "fields": {
771
+ "name": "owner",
772
+ "type": "string",
773
+ "in": "path",
774
+ "description": ""
775
+ }
776
+ },
777
+ "field_2": {
778
+ "field_type": "path",
779
+ "fields": {
780
+ "name": "repo",
781
+ "type": "string",
782
+ "in": "path",
783
+ "description": ""
784
+ }
785
+ },
786
+ "field_3": {
787
+ "field_type": "query",
788
+ "fields": {
789
+ "name": "per_page",
790
+ "type": "integer",
791
+ "in": "query",
792
+ "description": "Results per page (max 100)Default: 30"
793
+ }
794
+ },
795
+ "field_4": {
796
+ "field_type": "query",
797
+ "fields": {
798
+ "name": "page",
799
+ "type": "integer",
800
+ "in": "query",
801
+ "description": "Page number of the results to fetch.Default: 1"
802
+ }
803
+ }
804
+ },
805
+ {
806
+ "namespace_description": "List repositories starred by the authenticated user",
807
+ "method": "get",
808
+ "endpoint": "/user/starred",
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": "query",
820
+ "fields": {
821
+ "name": "sort",
822
+ "type": "string",
823
+ "in": "query",
824
+ "description": "One of created (when the repository was starred) or updated (when it was last pushed to).Default: created"
825
+ }
826
+ },
827
+ "field_2": {
828
+ "field_type": "query",
829
+ "fields": {
830
+ "name": "direction",
831
+ "type": "string",
832
+ "in": "query",
833
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
834
+ }
835
+ },
836
+ "field_3": {
837
+ "field_type": "query",
838
+ "fields": {
839
+ "name": "per_page",
840
+ "type": "integer",
841
+ "in": "query",
842
+ "description": "Results per page (max 100)Default: 30"
843
+ }
844
+ },
845
+ "field_4": {
846
+ "field_type": "query",
847
+ "fields": {
848
+ "name": "page",
849
+ "type": "integer",
850
+ "in": "query",
851
+ "description": "Page number of the results to fetch.Default: 1"
852
+ }
853
+ }
854
+ },
855
+ {
856
+ "namespace_description": "Check if a repository is starred by the authenticated user",
857
+ "method": "get",
858
+ "endpoint": "/user/starred/{owner}/{repo}",
859
+ "field_0": {
860
+ "field_type": "header",
861
+ "fields": {
862
+ "name": "accept",
863
+ "type": "string",
864
+ "in": "header",
865
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
866
+ }
867
+ },
868
+ "field_1": {
869
+ "field_type": "path",
870
+ "fields": {
871
+ "name": "owner",
872
+ "type": "string",
873
+ "in": "path",
874
+ "description": ""
875
+ }
876
+ },
877
+ "field_2": {
878
+ "field_type": "path",
879
+ "fields": {
880
+ "name": "repo",
881
+ "type": "string",
882
+ "in": "path",
883
+ "description": ""
884
+ }
885
+ }
886
+ },
887
+ {
888
+ "namespace_description": "Star a repository for the authenticated user",
889
+ "method": "put",
890
+ "endpoint": "/user/starred/{owner}/{repo}",
891
+ "field_0": {
892
+ "field_type": "header",
893
+ "fields": {
894
+ "name": "accept",
895
+ "type": "string",
896
+ "in": "header",
897
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
898
+ }
899
+ },
900
+ "field_1": {
901
+ "field_type": "path",
902
+ "fields": {
903
+ "name": "owner",
904
+ "type": "string",
905
+ "in": "path",
906
+ "description": ""
907
+ }
908
+ },
909
+ "field_2": {
910
+ "field_type": "path",
911
+ "fields": {
912
+ "name": "repo",
913
+ "type": "string",
914
+ "in": "path",
915
+ "description": ""
916
+ }
917
+ }
918
+ },
919
+ {
920
+ "namespace_description": "Unstar a repository for the authenticated user",
921
+ "method": "delete",
922
+ "endpoint": "/user/starred/{owner}/{repo}",
923
+ "field_0": {
924
+ "field_type": "header",
925
+ "fields": {
926
+ "name": "accept",
927
+ "type": "string",
928
+ "in": "header",
929
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
930
+ }
931
+ },
932
+ "field_1": {
933
+ "field_type": "path",
934
+ "fields": {
935
+ "name": "owner",
936
+ "type": "string",
937
+ "in": "path",
938
+ "description": ""
939
+ }
940
+ },
941
+ "field_2": {
942
+ "field_type": "path",
943
+ "fields": {
944
+ "name": "repo",
945
+ "type": "string",
946
+ "in": "path",
947
+ "description": ""
948
+ }
949
+ }
950
+ },
951
+ {
952
+ "namespace_description": "List repositories starred by a user",
953
+ "method": "get",
954
+ "endpoint": "/users/{username}/starred",
955
+ "field_0": {
956
+ "field_type": "header",
957
+ "fields": {
958
+ "name": "accept",
959
+ "type": "string",
960
+ "in": "header",
961
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
962
+ }
963
+ },
964
+ "field_1": {
965
+ "field_type": "path",
966
+ "fields": {
967
+ "name": "username",
968
+ "type": "string",
969
+ "in": "path",
970
+ "description": ""
971
+ }
972
+ },
973
+ "field_2": {
974
+ "field_type": "query",
975
+ "fields": {
976
+ "name": "sort",
977
+ "type": "string",
978
+ "in": "query",
979
+ "description": "One of created (when the repository was starred) or updated (when it was last pushed to).Default: created"
980
+ }
981
+ },
982
+ "field_3": {
983
+ "field_type": "query",
984
+ "fields": {
985
+ "name": "direction",
986
+ "type": "string",
987
+ "in": "query",
988
+ "description": "One of asc (ascending) or desc (descending).Default: desc"
989
+ }
990
+ },
991
+ "field_4": {
992
+ "field_type": "query",
993
+ "fields": {
994
+ "name": "per_page",
995
+ "type": "integer",
996
+ "in": "query",
997
+ "description": "Results per page (max 100)Default: 30"
998
+ }
999
+ },
1000
+ "field_5": {
1001
+ "field_type": "query",
1002
+ "fields": {
1003
+ "name": "page",
1004
+ "type": "integer",
1005
+ "in": "query",
1006
+ "description": "Page number of the results to fetch.Default: 1"
1007
+ }
1008
+ }
1009
+ },
1010
+ {
1011
+ "namespace_description": "List watchers",
1012
+ "method": "get",
1013
+ "endpoint": "/repos/{owner}/{repo}/subscribers",
1014
+ "field_0": {
1015
+ "field_type": "header",
1016
+ "fields": {
1017
+ "name": "accept",
1018
+ "type": "string",
1019
+ "in": "header",
1020
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1021
+ }
1022
+ },
1023
+ "field_1": {
1024
+ "field_type": "path",
1025
+ "fields": {
1026
+ "name": "owner",
1027
+ "type": "string",
1028
+ "in": "path",
1029
+ "description": ""
1030
+ }
1031
+ },
1032
+ "field_2": {
1033
+ "field_type": "path",
1034
+ "fields": {
1035
+ "name": "repo",
1036
+ "type": "string",
1037
+ "in": "path",
1038
+ "description": ""
1039
+ }
1040
+ },
1041
+ "field_3": {
1042
+ "field_type": "query",
1043
+ "fields": {
1044
+ "name": "per_page",
1045
+ "type": "integer",
1046
+ "in": "query",
1047
+ "description": "Results per page (max 100)Default: 30"
1048
+ }
1049
+ },
1050
+ "field_4": {
1051
+ "field_type": "query",
1052
+ "fields": {
1053
+ "name": "page",
1054
+ "type": "integer",
1055
+ "in": "query",
1056
+ "description": "Page number of the results to fetch.Default: 1"
1057
+ }
1058
+ }
1059
+ },
1060
+ {
1061
+ "namespace_description": "Get a repository subscription",
1062
+ "method": "get",
1063
+ "endpoint": "/repos/{owner}/{repo}/subscription",
1064
+ "field_0": {
1065
+ "field_type": "header",
1066
+ "fields": {
1067
+ "name": "accept",
1068
+ "type": "string",
1069
+ "in": "header",
1070
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1071
+ }
1072
+ },
1073
+ "field_1": {
1074
+ "field_type": "path",
1075
+ "fields": {
1076
+ "name": "owner",
1077
+ "type": "string",
1078
+ "in": "path",
1079
+ "description": ""
1080
+ }
1081
+ },
1082
+ "field_2": {
1083
+ "field_type": "path",
1084
+ "fields": {
1085
+ "name": "repo",
1086
+ "type": "string",
1087
+ "in": "path",
1088
+ "description": ""
1089
+ }
1090
+ }
1091
+ },
1092
+ {
1093
+ "namespace_description": "Set a repository subscription",
1094
+ "method": "put",
1095
+ "endpoint": "/repos/{owner}/{repo}/subscription",
1096
+ "field_0": {
1097
+ "field_type": "header",
1098
+ "fields": {
1099
+ "name": "accept",
1100
+ "type": "string",
1101
+ "in": "header",
1102
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1103
+ }
1104
+ },
1105
+ "field_1": {
1106
+ "field_type": "path",
1107
+ "fields": {
1108
+ "name": "owner",
1109
+ "type": "string",
1110
+ "in": "path",
1111
+ "description": ""
1112
+ }
1113
+ },
1114
+ "field_2": {
1115
+ "field_type": "path",
1116
+ "fields": {
1117
+ "name": "repo",
1118
+ "type": "string",
1119
+ "in": "path",
1120
+ "description": ""
1121
+ }
1122
+ },
1123
+ "field_3": {
1124
+ "field_type": "body",
1125
+ "fields": {
1126
+ "name": "subscribed",
1127
+ "type": "boolean",
1128
+ "in": "body",
1129
+ "description": "Determines if notifications should be received from this repository."
1130
+ }
1131
+ },
1132
+ "field_4": {
1133
+ "field_type": "body",
1134
+ "fields": {
1135
+ "name": "ignored",
1136
+ "type": "boolean",
1137
+ "in": "body",
1138
+ "description": "Determines if all notifications should be blocked from this repository."
1139
+ }
1140
+ }
1141
+ },
1142
+ {
1143
+ "namespace_description": "Delete a repository subscription",
1144
+ "method": "delete",
1145
+ "endpoint": "/repos/{owner}/{repo}/subscription",
1146
+ "field_0": {
1147
+ "field_type": "header",
1148
+ "fields": {
1149
+ "name": "accept",
1150
+ "type": "string",
1151
+ "in": "header",
1152
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1153
+ }
1154
+ },
1155
+ "field_1": {
1156
+ "field_type": "path",
1157
+ "fields": {
1158
+ "name": "owner",
1159
+ "type": "string",
1160
+ "in": "path",
1161
+ "description": ""
1162
+ }
1163
+ },
1164
+ "field_2": {
1165
+ "field_type": "path",
1166
+ "fields": {
1167
+ "name": "repo",
1168
+ "type": "string",
1169
+ "in": "path",
1170
+ "description": ""
1171
+ }
1172
+ }
1173
+ },
1174
+ {
1175
+ "namespace_description": "List repositories watched by the authenticated user",
1176
+ "method": "get",
1177
+ "endpoint": "/user/subscriptions",
1178
+ "field_0": {
1179
+ "field_type": "header",
1180
+ "fields": {
1181
+ "name": "accept",
1182
+ "type": "string",
1183
+ "in": "header",
1184
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1185
+ }
1186
+ },
1187
+ "field_1": {
1188
+ "field_type": "query",
1189
+ "fields": {
1190
+ "name": "per_page",
1191
+ "type": "integer",
1192
+ "in": "query",
1193
+ "description": "Results per page (max 100)Default: 30"
1194
+ }
1195
+ },
1196
+ "field_2": {
1197
+ "field_type": "query",
1198
+ "fields": {
1199
+ "name": "page",
1200
+ "type": "integer",
1201
+ "in": "query",
1202
+ "description": "Page number of the results to fetch.Default: 1"
1203
+ }
1204
+ }
1205
+ },
1206
+ {
1207
+ "namespace_description": "List repositories watched by a user",
1208
+ "method": "get",
1209
+ "endpoint": "/users/{username}/subscriptions",
1210
+ "field_0": {
1211
+ "field_type": "header",
1212
+ "fields": {
1213
+ "name": "accept",
1214
+ "type": "string",
1215
+ "in": "header",
1216
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
1217
+ }
1218
+ },
1219
+ "field_1": {
1220
+ "field_type": "path",
1221
+ "fields": {
1222
+ "name": "username",
1223
+ "type": "string",
1224
+ "in": "path",
1225
+ "description": ""
1226
+ }
1227
+ },
1228
+ "field_2": {
1229
+ "field_type": "query",
1230
+ "fields": {
1231
+ "name": "per_page",
1232
+ "type": "integer",
1233
+ "in": "query",
1234
+ "description": "Results per page (max 100)Default: 30"
1235
+ }
1236
+ },
1237
+ "field_3": {
1238
+ "field_type": "query",
1239
+ "fields": {
1240
+ "name": "page",
1241
+ "type": "integer",
1242
+ "in": "query",
1243
+ "description": "Page number of the results to fetch.Default: 1"
1244
+ }
1245
+ }
1246
+ }
1247
+ ]
1248
+ }