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,667 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get a webhook configuration for a repository",
5
+ "method": "get",
6
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
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": "path",
36
+ "fields": {
37
+ "name": "hook_id",
38
+ "type": "integer",
39
+ "in": "path",
40
+ "description": ""
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "namespace_description": "Update a webhook configuration for a repository",
46
+ "method": "patch",
47
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
48
+ "field_0": {
49
+ "field_type": "header",
50
+ "fields": {
51
+ "name": "accept",
52
+ "type": "string",
53
+ "in": "header",
54
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
55
+ }
56
+ },
57
+ "field_1": {
58
+ "field_type": "path",
59
+ "fields": {
60
+ "name": "owner",
61
+ "type": "string",
62
+ "in": "path",
63
+ "description": ""
64
+ }
65
+ },
66
+ "field_2": {
67
+ "field_type": "path",
68
+ "fields": {
69
+ "name": "repo",
70
+ "type": "string",
71
+ "in": "path",
72
+ "description": ""
73
+ }
74
+ },
75
+ "field_3": {
76
+ "field_type": "path",
77
+ "fields": {
78
+ "name": "hook_id",
79
+ "type": "integer",
80
+ "in": "path",
81
+ "description": ""
82
+ }
83
+ },
84
+ "field_4": {
85
+ "field_type": "body",
86
+ "fields": {
87
+ "name": "url",
88
+ "type": "string",
89
+ "in": "body",
90
+ "description": "The URL to which the payloads will be delivered."
91
+ }
92
+ },
93
+ "field_5": {
94
+ "field_type": "body",
95
+ "fields": {
96
+ "name": "content_type",
97
+ "type": "string",
98
+ "in": "body",
99
+ "description": "The media type used to serialize the payloads. Supported values include json and form. The default is form."
100
+ }
101
+ },
102
+ "field_6": {
103
+ "field_type": "body",
104
+ "fields": {
105
+ "name": "secret",
106
+ "type": "string",
107
+ "in": "body",
108
+ "description": "If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers."
109
+ }
110
+ },
111
+ "field_7": {
112
+ "field_type": "body",
113
+ "fields": {
114
+ "name": "insecure_ssl",
115
+ "type": "string or number or ",
116
+ "in": "body",
117
+ "description": "Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks."
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "namespace_description": "List deliveries for a repository webhook",
123
+ "method": "get",
124
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
125
+ "field_0": {
126
+ "field_type": "header",
127
+ "fields": {
128
+ "name": "accept",
129
+ "type": "string",
130
+ "in": "header",
131
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
132
+ }
133
+ },
134
+ "field_1": {
135
+ "field_type": "path",
136
+ "fields": {
137
+ "name": "owner",
138
+ "type": "string",
139
+ "in": "path",
140
+ "description": ""
141
+ }
142
+ },
143
+ "field_2": {
144
+ "field_type": "path",
145
+ "fields": {
146
+ "name": "repo",
147
+ "type": "string",
148
+ "in": "path",
149
+ "description": ""
150
+ }
151
+ },
152
+ "field_3": {
153
+ "field_type": "path",
154
+ "fields": {
155
+ "name": "hook_id",
156
+ "type": "integer",
157
+ "in": "path",
158
+ "description": ""
159
+ }
160
+ },
161
+ "field_4": {
162
+ "field_type": "query",
163
+ "fields": {
164
+ "name": "per_page",
165
+ "type": "integer",
166
+ "in": "query",
167
+ "description": "Results per page (max 100)Default: 30"
168
+ }
169
+ },
170
+ "field_5": {
171
+ "field_type": "query",
172
+ "fields": {
173
+ "name": "cursor",
174
+ "type": "string",
175
+ "in": "query",
176
+ "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors."
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "namespace_description": "Get a delivery for a repository webhook",
182
+ "method": "get",
183
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
184
+ "field_0": {
185
+ "field_type": "header",
186
+ "fields": {
187
+ "name": "accept",
188
+ "type": "string",
189
+ "in": "header",
190
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
191
+ }
192
+ },
193
+ "field_1": {
194
+ "field_type": "path",
195
+ "fields": {
196
+ "name": "owner",
197
+ "type": "string",
198
+ "in": "path",
199
+ "description": ""
200
+ }
201
+ },
202
+ "field_2": {
203
+ "field_type": "path",
204
+ "fields": {
205
+ "name": "repo",
206
+ "type": "string",
207
+ "in": "path",
208
+ "description": ""
209
+ }
210
+ },
211
+ "field_3": {
212
+ "field_type": "path",
213
+ "fields": {
214
+ "name": "hook_id",
215
+ "type": "integer",
216
+ "in": "path",
217
+ "description": ""
218
+ }
219
+ },
220
+ "field_4": {
221
+ "field_type": "path",
222
+ "fields": {
223
+ "name": "delivery_id",
224
+ "type": "integer",
225
+ "in": "path",
226
+ "description": ""
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "namespace_description": "Redeliver a delivery for a repository webhook",
232
+ "method": "post",
233
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
234
+ "field_0": {
235
+ "field_type": "header",
236
+ "fields": {
237
+ "name": "accept",
238
+ "type": "string",
239
+ "in": "header",
240
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
241
+ }
242
+ },
243
+ "field_1": {
244
+ "field_type": "path",
245
+ "fields": {
246
+ "name": "owner",
247
+ "type": "string",
248
+ "in": "path",
249
+ "description": ""
250
+ }
251
+ },
252
+ "field_2": {
253
+ "field_type": "path",
254
+ "fields": {
255
+ "name": "repo",
256
+ "type": "string",
257
+ "in": "path",
258
+ "description": ""
259
+ }
260
+ },
261
+ "field_3": {
262
+ "field_type": "path",
263
+ "fields": {
264
+ "name": "hook_id",
265
+ "type": "integer",
266
+ "in": "path",
267
+ "description": ""
268
+ }
269
+ },
270
+ "field_4": {
271
+ "field_type": "path",
272
+ "fields": {
273
+ "name": "delivery_id",
274
+ "type": "integer",
275
+ "in": "path",
276
+ "description": ""
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "namespace_description": "List repository webhooks",
282
+ "method": "get",
283
+ "endpoint": "/repos/{owner}/{repo}/hooks",
284
+ "field_0": {
285
+ "field_type": "header",
286
+ "fields": {
287
+ "name": "accept",
288
+ "type": "string",
289
+ "in": "header",
290
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
291
+ }
292
+ },
293
+ "field_1": {
294
+ "field_type": "path",
295
+ "fields": {
296
+ "name": "owner",
297
+ "type": "string",
298
+ "in": "path",
299
+ "description": ""
300
+ }
301
+ },
302
+ "field_2": {
303
+ "field_type": "path",
304
+ "fields": {
305
+ "name": "repo",
306
+ "type": "string",
307
+ "in": "path",
308
+ "description": ""
309
+ }
310
+ },
311
+ "field_3": {
312
+ "field_type": "query",
313
+ "fields": {
314
+ "name": "per_page",
315
+ "type": "integer",
316
+ "in": "query",
317
+ "description": "Results per page (max 100)Default: 30"
318
+ }
319
+ },
320
+ "field_4": {
321
+ "field_type": "query",
322
+ "fields": {
323
+ "name": "page",
324
+ "type": "integer",
325
+ "in": "query",
326
+ "description": "Page number of the results to fetch.Default: 1"
327
+ }
328
+ }
329
+ },
330
+ {
331
+ "namespace_description": "Create a repository webhook",
332
+ "method": "post",
333
+ "endpoint": "/repos/{owner}/{repo}/hooks",
334
+ "field_0": {
335
+ "field_type": "header",
336
+ "fields": {
337
+ "name": "accept",
338
+ "type": "string",
339
+ "in": "header",
340
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
341
+ }
342
+ },
343
+ "field_1": {
344
+ "field_type": "path",
345
+ "fields": {
346
+ "name": "owner",
347
+ "type": "string",
348
+ "in": "path",
349
+ "description": ""
350
+ }
351
+ },
352
+ "field_2": {
353
+ "field_type": "path",
354
+ "fields": {
355
+ "name": "repo",
356
+ "type": "string",
357
+ "in": "path",
358
+ "description": ""
359
+ }
360
+ },
361
+ "field_3": {
362
+ "field_type": "body",
363
+ "fields": {
364
+ "name": "name",
365
+ "type": "string",
366
+ "in": "body",
367
+ "description": "Use web to create a webhook. Default: web. This parameter only accepts the value web."
368
+ }
369
+ },
370
+ "field_4": {
371
+ "field_type": "body",
372
+ "fields": {
373
+ "name": "config",
374
+ "type": "object",
375
+ "in": "body",
376
+ "description": "Key/value pairs to provide settings for this webhook. These are defined below."
377
+ }
378
+ },
379
+ "field_5": {
380
+ "field_type": null,
381
+ "fields": {
382
+ "name": "Properties of theconfigobjectName (Type)Descriptionurl (string)The URL to which the payloads will be delivered.content_type (string)The media type used to serialize the payloads. Supported values include json and form. The default is form.secret (string)If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.insecure_ssl (string or number or )Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.token (string)digest (string)",
383
+ "type": null,
384
+ "in": null,
385
+ "description": null
386
+ }
387
+ },
388
+ "field_6": {
389
+ "field_type": "body",
390
+ "fields": {
391
+ "name": "events",
392
+ "type": "array of strings",
393
+ "in": "body",
394
+ "description": "Determines what events the hook is triggered for.Default: push"
395
+ }
396
+ },
397
+ "field_7": {
398
+ "field_type": "body",
399
+ "fields": {
400
+ "name": "active",
401
+ "type": "boolean",
402
+ "in": "body",
403
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.Default: "
404
+ }
405
+ }
406
+ },
407
+ {
408
+ "namespace_description": "Get a repository webhook",
409
+ "method": "get",
410
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}",
411
+ "field_0": {
412
+ "field_type": "header",
413
+ "fields": {
414
+ "name": "accept",
415
+ "type": "string",
416
+ "in": "header",
417
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
418
+ }
419
+ },
420
+ "field_1": {
421
+ "field_type": "path",
422
+ "fields": {
423
+ "name": "owner",
424
+ "type": "string",
425
+ "in": "path",
426
+ "description": ""
427
+ }
428
+ },
429
+ "field_2": {
430
+ "field_type": "path",
431
+ "fields": {
432
+ "name": "repo",
433
+ "type": "string",
434
+ "in": "path",
435
+ "description": ""
436
+ }
437
+ },
438
+ "field_3": {
439
+ "field_type": "path",
440
+ "fields": {
441
+ "name": "hook_id",
442
+ "type": "integer",
443
+ "in": "path",
444
+ "description": ""
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "namespace_description": "Update a repository webhook",
450
+ "method": "patch",
451
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}",
452
+ "field_0": {
453
+ "field_type": "header",
454
+ "fields": {
455
+ "name": "accept",
456
+ "type": "string",
457
+ "in": "header",
458
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
459
+ }
460
+ },
461
+ "field_1": {
462
+ "field_type": "path",
463
+ "fields": {
464
+ "name": "owner",
465
+ "type": "string",
466
+ "in": "path",
467
+ "description": ""
468
+ }
469
+ },
470
+ "field_2": {
471
+ "field_type": "path",
472
+ "fields": {
473
+ "name": "repo",
474
+ "type": "string",
475
+ "in": "path",
476
+ "description": ""
477
+ }
478
+ },
479
+ "field_3": {
480
+ "field_type": "path",
481
+ "fields": {
482
+ "name": "hook_id",
483
+ "type": "integer",
484
+ "in": "path",
485
+ "description": ""
486
+ }
487
+ },
488
+ "field_4": {
489
+ "field_type": "body",
490
+ "fields": {
491
+ "name": "config",
492
+ "type": "object",
493
+ "in": "body",
494
+ "description": "Key/value pairs to provide settings for this webhook. These are defined below."
495
+ }
496
+ },
497
+ "field_5": {
498
+ "field_type": null,
499
+ "fields": {
500
+ "name": "Properties of theconfigobjectName (Type)Descriptionurl (string)Required. The URL to which the payloads will be delivered.content_type (string)The media type used to serialize the payloads. Supported values include json and form. The default is form.secret (string)If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers.insecure_ssl (string or number or )Determines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0. We strongly recommend not setting this to 1 as you are subject to man-in-the-middle and other attacks.address (string)room (string)",
501
+ "type": null,
502
+ "in": null,
503
+ "description": null
504
+ }
505
+ },
506
+ "field_6": {
507
+ "field_type": "body",
508
+ "fields": {
509
+ "name": "events",
510
+ "type": "array of strings",
511
+ "in": "body",
512
+ "description": "Determines what events the hook is triggered for. This replaces the entire array of events.Default: push"
513
+ }
514
+ },
515
+ "field_7": {
516
+ "field_type": "body",
517
+ "fields": {
518
+ "name": "add_events",
519
+ "type": "array of strings",
520
+ "in": "body",
521
+ "description": "Determines a list of events to be added to the list of events that the Hook triggers for."
522
+ }
523
+ },
524
+ "field_8": {
525
+ "field_type": "body",
526
+ "fields": {
527
+ "name": "remove_events",
528
+ "type": "array of strings",
529
+ "in": "body",
530
+ "description": "Determines a list of events to be removed from the list of events that the Hook triggers for."
531
+ }
532
+ },
533
+ "field_9": {
534
+ "field_type": "body",
535
+ "fields": {
536
+ "name": "active",
537
+ "type": "boolean",
538
+ "in": "body",
539
+ "description": "Determines if notifications are sent when the webhook is triggered. Set to true to send notifications.Default: "
540
+ }
541
+ }
542
+ },
543
+ {
544
+ "namespace_description": "Delete a repository webhook",
545
+ "method": "delete",
546
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}",
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": "hook_id",
578
+ "type": "integer",
579
+ "in": "path",
580
+ "description": ""
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "namespace_description": "Ping a repository webhook",
586
+ "method": "post",
587
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
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": "hook_id",
619
+ "type": "integer",
620
+ "in": "path",
621
+ "description": ""
622
+ }
623
+ }
624
+ },
625
+ {
626
+ "namespace_description": "Test the push repository webhook",
627
+ "method": "post",
628
+ "endpoint": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
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": "path",
658
+ "fields": {
659
+ "name": "hook_id",
660
+ "type": "integer",
661
+ "in": "path",
662
+ "description": ""
663
+ }
664
+ }
665
+ }
666
+ ]
667
+ }