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,373 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get a GitHub Pages site",
5
+ "method": "get",
6
+ "endpoint": "/repos/{owner}/{repo}/pages",
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
+ },
35
+ {
36
+ "namespace_description": "Create a GitHub Pages site",
37
+ "method": "post",
38
+ "endpoint": "/repos/{owner}/{repo}/pages",
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": "body",
68
+ "fields": {
69
+ "name": "source",
70
+ "type": "object",
71
+ "in": "body",
72
+ "description": "Required. The source branch and directory used to publish your Pages site."
73
+ }
74
+ },
75
+ "field_4": {
76
+ "field_type": null,
77
+ "fields": {
78
+ "name": "Properties of thesourceobjectName (Type)Descriptionbranch (string)Required. The repository branch used to publish your site's source files.path (string)The repository directory that includes the source files for the Pages site. Allowed paths are / or /docs. Default: /",
79
+ "type": null,
80
+ "in": null,
81
+ "description": null
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "namespace_description": "Update information about a GitHub Pages site",
87
+ "method": "put",
88
+ "endpoint": "/repos/{owner}/{repo}/pages",
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": "owner",
102
+ "type": "string",
103
+ "in": "path",
104
+ "description": ""
105
+ }
106
+ },
107
+ "field_2": {
108
+ "field_type": "path",
109
+ "fields": {
110
+ "name": "repo",
111
+ "type": "string",
112
+ "in": "path",
113
+ "description": ""
114
+ }
115
+ },
116
+ "field_3": {
117
+ "field_type": "body",
118
+ "fields": {
119
+ "name": "cname",
120
+ "type": "string or null",
121
+ "in": "body",
122
+ "description": "Specify a custom domain for the repository. Sending a null value will remove the custom domain. For more about custom domains, see \"Using a custom domain with GitHub Pages.\""
123
+ }
124
+ },
125
+ "field_4": {
126
+ "field_type": "body",
127
+ "fields": {
128
+ "name": "https_enforced",
129
+ "type": "boolean",
130
+ "in": "body",
131
+ "description": "Specify whether HTTPS should be enforced for the repository."
132
+ }
133
+ },
134
+ "field_5": {
135
+ "field_type": "body",
136
+ "fields": {
137
+ "name": "public",
138
+ "type": "boolean",
139
+ "in": "body",
140
+ "description": "Configures access controls for the GitHub Pages site. If public is set to true, the site is accessible to anyone on the internet. If set to false, the site will only be accessible to users who have at least read access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal visibility. This feature is only available to repositories in an organization on an Enterprise plan."
141
+ }
142
+ },
143
+ "field_6": {
144
+ "field_type": "body",
145
+ "fields": {
146
+ "name": "source",
147
+ "type": "",
148
+ "in": "body",
149
+ "description": ""
150
+ }
151
+ }
152
+ },
153
+ {
154
+ "namespace_description": "Delete a GitHub Pages site",
155
+ "method": "delete",
156
+ "endpoint": "/repos/{owner}/{repo}/pages",
157
+ "field_0": {
158
+ "field_type": "header",
159
+ "fields": {
160
+ "name": "accept",
161
+ "type": "string",
162
+ "in": "header",
163
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
164
+ }
165
+ },
166
+ "field_1": {
167
+ "field_type": "path",
168
+ "fields": {
169
+ "name": "owner",
170
+ "type": "string",
171
+ "in": "path",
172
+ "description": ""
173
+ }
174
+ },
175
+ "field_2": {
176
+ "field_type": "path",
177
+ "fields": {
178
+ "name": "repo",
179
+ "type": "string",
180
+ "in": "path",
181
+ "description": ""
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "namespace_description": "List GitHub Pages builds",
187
+ "method": "get",
188
+ "endpoint": "/repos/{owner}/{repo}/pages/builds",
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": "owner",
202
+ "type": "string",
203
+ "in": "path",
204
+ "description": ""
205
+ }
206
+ },
207
+ "field_2": {
208
+ "field_type": "path",
209
+ "fields": {
210
+ "name": "repo",
211
+ "type": "string",
212
+ "in": "path",
213
+ "description": ""
214
+ }
215
+ },
216
+ "field_3": {
217
+ "field_type": "query",
218
+ "fields": {
219
+ "name": "per_page",
220
+ "type": "integer",
221
+ "in": "query",
222
+ "description": "Results per page (max 100)Default: 30"
223
+ }
224
+ },
225
+ "field_4": {
226
+ "field_type": "query",
227
+ "fields": {
228
+ "name": "page",
229
+ "type": "integer",
230
+ "in": "query",
231
+ "description": "Page number of the results to fetch.Default: 1"
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "namespace_description": "Request a GitHub Pages build",
237
+ "method": "post",
238
+ "endpoint": "/repos/{owner}/{repo}/pages/builds",
239
+ "field_0": {
240
+ "field_type": "header",
241
+ "fields": {
242
+ "name": "accept",
243
+ "type": "string",
244
+ "in": "header",
245
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
246
+ }
247
+ },
248
+ "field_1": {
249
+ "field_type": "path",
250
+ "fields": {
251
+ "name": "owner",
252
+ "type": "string",
253
+ "in": "path",
254
+ "description": ""
255
+ }
256
+ },
257
+ "field_2": {
258
+ "field_type": "path",
259
+ "fields": {
260
+ "name": "repo",
261
+ "type": "string",
262
+ "in": "path",
263
+ "description": ""
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "namespace_description": "Get latest Pages build",
269
+ "method": "get",
270
+ "endpoint": "/repos/{owner}/{repo}/pages/builds/latest",
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
+ },
299
+ {
300
+ "namespace_description": "Get GitHub Pages build",
301
+ "method": "get",
302
+ "endpoint": "/repos/{owner}/{repo}/pages/builds/{build_id}",
303
+ "field_0": {
304
+ "field_type": "header",
305
+ "fields": {
306
+ "name": "accept",
307
+ "type": "string",
308
+ "in": "header",
309
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
310
+ }
311
+ },
312
+ "field_1": {
313
+ "field_type": "path",
314
+ "fields": {
315
+ "name": "owner",
316
+ "type": "string",
317
+ "in": "path",
318
+ "description": ""
319
+ }
320
+ },
321
+ "field_2": {
322
+ "field_type": "path",
323
+ "fields": {
324
+ "name": "repo",
325
+ "type": "string",
326
+ "in": "path",
327
+ "description": ""
328
+ }
329
+ },
330
+ "field_3": {
331
+ "field_type": "path",
332
+ "fields": {
333
+ "name": "build_id",
334
+ "type": "integer",
335
+ "in": "path",
336
+ "description": ""
337
+ }
338
+ }
339
+ },
340
+ {
341
+ "namespace_description": "Get a DNS health check for GitHub Pages",
342
+ "method": "get",
343
+ "endpoint": "/repos/{owner}/{repo}/pages/health",
344
+ "field_0": {
345
+ "field_type": "header",
346
+ "fields": {
347
+ "name": "accept",
348
+ "type": "string",
349
+ "in": "header",
350
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
351
+ }
352
+ },
353
+ "field_1": {
354
+ "field_type": "path",
355
+ "fields": {
356
+ "name": "owner",
357
+ "type": "string",
358
+ "in": "path",
359
+ "description": ""
360
+ }
361
+ },
362
+ "field_2": {
363
+ "field_type": "path",
364
+ "fields": {
365
+ "name": "repo",
366
+ "type": "string",
367
+ "in": "path",
368
+ "description": ""
369
+ }
370
+ }
371
+ }
372
+ ]
373
+ }