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,408 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Search code",
5
+ "method": "get",
6
+ "endpoint": "/search/code",
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": "q",
20
+ "type": "string",
21
+ "in": "query",
22
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching code\" for a detailed list of qualifiers."
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "sort",
29
+ "type": "string",
30
+ "in": "query",
31
+ "description": "Sorts the results of your query. Can only be indexed, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: best match"
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "order",
38
+ "type": "string",
39
+ "in": "query",
40
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
41
+ }
42
+ },
43
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "per_page",
47
+ "type": "integer",
48
+ "in": "query",
49
+ "description": "Results per page (max 100)Default: 30"
50
+ }
51
+ },
52
+ "field_5": {
53
+ "field_type": "query",
54
+ "fields": {
55
+ "name": "page",
56
+ "type": "integer",
57
+ "in": "query",
58
+ "description": "Page number of the results to fetch.Default: 1"
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "namespace_description": "Search commits",
64
+ "method": "get",
65
+ "endpoint": "/search/commits",
66
+ "field_0": {
67
+ "field_type": "header",
68
+ "fields": {
69
+ "name": "accept",
70
+ "type": "string",
71
+ "in": "header",
72
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
73
+ }
74
+ },
75
+ "field_1": {
76
+ "field_type": "query",
77
+ "fields": {
78
+ "name": "q",
79
+ "type": "string",
80
+ "in": "query",
81
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching commits\" for a detailed list of qualifiers."
82
+ }
83
+ },
84
+ "field_2": {
85
+ "field_type": "query",
86
+ "fields": {
87
+ "name": "sort",
88
+ "type": "string",
89
+ "in": "query",
90
+ "description": "Sorts the results of your query by author-date or committer-date. Default: best match"
91
+ }
92
+ },
93
+ "field_3": {
94
+ "field_type": "query",
95
+ "fields": {
96
+ "name": "order",
97
+ "type": "string",
98
+ "in": "query",
99
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
100
+ }
101
+ },
102
+ "field_4": {
103
+ "field_type": "query",
104
+ "fields": {
105
+ "name": "per_page",
106
+ "type": "integer",
107
+ "in": "query",
108
+ "description": "Results per page (max 100)Default: 30"
109
+ }
110
+ },
111
+ "field_5": {
112
+ "field_type": "query",
113
+ "fields": {
114
+ "name": "page",
115
+ "type": "integer",
116
+ "in": "query",
117
+ "description": "Page number of the results to fetch.Default: 1"
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "namespace_description": "Search issues and pull requests",
123
+ "method": "get",
124
+ "endpoint": "/search/issues",
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": "query",
136
+ "fields": {
137
+ "name": "q",
138
+ "type": "string",
139
+ "in": "query",
140
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching issues and pull requests\" for a detailed list of qualifiers."
141
+ }
142
+ },
143
+ "field_2": {
144
+ "field_type": "query",
145
+ "fields": {
146
+ "name": "sort",
147
+ "type": "string",
148
+ "in": "query",
149
+ "description": "Sorts the results of your query by the number of comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, or interactions. You can also sort results by how recently the items were created or updated, Default: best match"
150
+ }
151
+ },
152
+ "field_3": {
153
+ "field_type": "query",
154
+ "fields": {
155
+ "name": "order",
156
+ "type": "string",
157
+ "in": "query",
158
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
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": "page",
174
+ "type": "integer",
175
+ "in": "query",
176
+ "description": "Page number of the results to fetch.Default: 1"
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "namespace_description": "Search labels",
182
+ "method": "get",
183
+ "endpoint": "/search/labels",
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": "query",
195
+ "fields": {
196
+ "name": "repository_id",
197
+ "type": "integer",
198
+ "in": "query",
199
+ "description": "The id of the repository."
200
+ }
201
+ },
202
+ "field_2": {
203
+ "field_type": "query",
204
+ "fields": {
205
+ "name": "q",
206
+ "type": "string",
207
+ "in": "query",
208
+ "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query."
209
+ }
210
+ },
211
+ "field_3": {
212
+ "field_type": "query",
213
+ "fields": {
214
+ "name": "sort",
215
+ "type": "string",
216
+ "in": "query",
217
+ "description": "Sorts the results of your query by when the label was created or updated. Default: best match"
218
+ }
219
+ },
220
+ "field_4": {
221
+ "field_type": "query",
222
+ "fields": {
223
+ "name": "order",
224
+ "type": "string",
225
+ "in": "query",
226
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
227
+ }
228
+ },
229
+ "field_5": {
230
+ "field_type": "query",
231
+ "fields": {
232
+ "name": "per_page",
233
+ "type": "integer",
234
+ "in": "query",
235
+ "description": "Results per page (max 100)Default: 30"
236
+ }
237
+ },
238
+ "field_6": {
239
+ "field_type": "query",
240
+ "fields": {
241
+ "name": "page",
242
+ "type": "integer",
243
+ "in": "query",
244
+ "description": "Page number of the results to fetch.Default: 1"
245
+ }
246
+ }
247
+ },
248
+ {
249
+ "namespace_description": "Search repositories",
250
+ "method": "get",
251
+ "endpoint": "/search/repositories",
252
+ "field_0": {
253
+ "field_type": "header",
254
+ "fields": {
255
+ "name": "accept",
256
+ "type": "string",
257
+ "in": "header",
258
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
259
+ }
260
+ },
261
+ "field_1": {
262
+ "field_type": "query",
263
+ "fields": {
264
+ "name": "q",
265
+ "type": "string",
266
+ "in": "query",
267
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching for repositories\" for a detailed list of qualifiers."
268
+ }
269
+ },
270
+ "field_2": {
271
+ "field_type": "query",
272
+ "fields": {
273
+ "name": "sort",
274
+ "type": "string",
275
+ "in": "query",
276
+ "description": "Sorts the results of your query by number of stars, forks, or help-wanted-issues or how recently the items were updated. Default: best match"
277
+ }
278
+ },
279
+ "field_3": {
280
+ "field_type": "query",
281
+ "fields": {
282
+ "name": "order",
283
+ "type": "string",
284
+ "in": "query",
285
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
286
+ }
287
+ },
288
+ "field_4": {
289
+ "field_type": "query",
290
+ "fields": {
291
+ "name": "per_page",
292
+ "type": "integer",
293
+ "in": "query",
294
+ "description": "Results per page (max 100)Default: 30"
295
+ }
296
+ },
297
+ "field_5": {
298
+ "field_type": "query",
299
+ "fields": {
300
+ "name": "page",
301
+ "type": "integer",
302
+ "in": "query",
303
+ "description": "Page number of the results to fetch.Default: 1"
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "namespace_description": "Search topics",
309
+ "method": "get",
310
+ "endpoint": "/search/topics",
311
+ "field_0": {
312
+ "field_type": "header",
313
+ "fields": {
314
+ "name": "accept",
315
+ "type": "string",
316
+ "in": "header",
317
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
318
+ }
319
+ },
320
+ "field_1": {
321
+ "field_type": "query",
322
+ "fields": {
323
+ "name": "q",
324
+ "type": "string",
325
+ "in": "query",
326
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query."
327
+ }
328
+ },
329
+ "field_2": {
330
+ "field_type": "query",
331
+ "fields": {
332
+ "name": "per_page",
333
+ "type": "integer",
334
+ "in": "query",
335
+ "description": "Results per page (max 100)Default: 30"
336
+ }
337
+ },
338
+ "field_3": {
339
+ "field_type": "query",
340
+ "fields": {
341
+ "name": "page",
342
+ "type": "integer",
343
+ "in": "query",
344
+ "description": "Page number of the results to fetch.Default: 1"
345
+ }
346
+ }
347
+ },
348
+ {
349
+ "namespace_description": "Search users",
350
+ "method": "get",
351
+ "endpoint": "/search/users",
352
+ "field_0": {
353
+ "field_type": "header",
354
+ "fields": {
355
+ "name": "accept",
356
+ "type": "string",
357
+ "in": "header",
358
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
359
+ }
360
+ },
361
+ "field_1": {
362
+ "field_type": "query",
363
+ "fields": {
364
+ "name": "q",
365
+ "type": "string",
366
+ "in": "query",
367
+ "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See \"Searching users\" for a detailed list of qualifiers."
368
+ }
369
+ },
370
+ "field_2": {
371
+ "field_type": "query",
372
+ "fields": {
373
+ "name": "sort",
374
+ "type": "string",
375
+ "in": "query",
376
+ "description": "Sorts the results of your query by number of followers or repositories, or when the person joined GitHub. Default: best match"
377
+ }
378
+ },
379
+ "field_3": {
380
+ "field_type": "query",
381
+ "fields": {
382
+ "name": "order",
383
+ "type": "string",
384
+ "in": "query",
385
+ "description": "Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.Default: desc"
386
+ }
387
+ },
388
+ "field_4": {
389
+ "field_type": "query",
390
+ "fields": {
391
+ "name": "per_page",
392
+ "type": "integer",
393
+ "in": "query",
394
+ "description": "Results per page (max 100)Default: 30"
395
+ }
396
+ },
397
+ "field_5": {
398
+ "field_type": "query",
399
+ "fields": {
400
+ "name": "page",
401
+ "type": "integer",
402
+ "in": "query",
403
+ "description": "Page number of the results to fetch.Default: 1"
404
+ }
405
+ }
406
+ }
407
+ ]
408
+ }