gitabu 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,100 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get all commonly used licenses",
5
+ "method": "get",
6
+ "endpoint": "/licenses",
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": "featured",
20
+ "type": "boolean",
21
+ "in": "query",
22
+ "description": ""
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "query",
27
+ "fields": {
28
+ "name": "per_page",
29
+ "type": "integer",
30
+ "in": "query",
31
+ "description": "Results per page (max 100)Default: 30"
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "query",
36
+ "fields": {
37
+ "name": "page",
38
+ "type": "integer",
39
+ "in": "query",
40
+ "description": "Page number of the results to fetch.Default: 1"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "namespace_description": "Get a license",
46
+ "method": "get",
47
+ "endpoint": "/licenses/{license}",
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": "license",
61
+ "type": "string",
62
+ "in": "path",
63
+ "description": ""
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "namespace_description": "Get the license for a repository",
69
+ "method": "get",
70
+ "endpoint": "/repos/{owner}/{repo}/license",
71
+ "field_0": {
72
+ "field_type": "header",
73
+ "fields": {
74
+ "name": "accept",
75
+ "type": "string",
76
+ "in": "header",
77
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
78
+ }
79
+ },
80
+ "field_1": {
81
+ "field_type": "path",
82
+ "fields": {
83
+ "name": "owner",
84
+ "type": "string",
85
+ "in": "path",
86
+ "description": ""
87
+ }
88
+ },
89
+ "field_2": {
90
+ "field_type": "path",
91
+ "fields": {
92
+ "name": "repo",
93
+ "type": "string",
94
+ "in": "path",
95
+ "description": ""
96
+ }
97
+ }
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Render a Markdown document",
5
+ "method": "post",
6
+ "endpoint": "/markdown",
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": "body",
18
+ "fields": {
19
+ "name": "text",
20
+ "type": "string",
21
+ "in": "body",
22
+ "description": "Required. The Markdown text to render in HTML."
23
+ }
24
+ },
25
+ "field_2": {
26
+ "field_type": "body",
27
+ "fields": {
28
+ "name": "mode",
29
+ "type": "string",
30
+ "in": "body",
31
+ "description": "The rendering mode. Can be either markdown or gfm.Default: markdown"
32
+ }
33
+ },
34
+ "field_3": {
35
+ "field_type": "body",
36
+ "fields": {
37
+ "name": "context",
38
+ "type": "string",
39
+ "in": "body",
40
+ "description": "The repository context to use when creating references in gfm mode. For example, setting context to octo-org/octo-repo will change the text #42 into an HTML link to issue 42 in the octo-org/octo-repo repository."
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "namespace_description": "Render a Markdown document in raw mode",
46
+ "method": "post",
47
+ "endpoint": "/markdown/raw",
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
+ }
58
+ ]
59
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "GitHub API Root",
5
+ "method": "get",
6
+ "endpoint": "/",
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
+ },
17
+ {
18
+ "namespace_description": "Get GitHub meta information",
19
+ "method": "get",
20
+ "endpoint": "/meta",
21
+ "field_0": {
22
+ "field_type": "header",
23
+ "fields": {
24
+ "name": "accept",
25
+ "type": "string",
26
+ "in": "header",
27
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "namespace_description": "Get Octocat",
33
+ "method": "get",
34
+ "endpoint": "/octocat",
35
+ "field_0": {
36
+ "field_type": "header",
37
+ "fields": {
38
+ "name": "accept",
39
+ "type": "string",
40
+ "in": "header",
41
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
42
+ }
43
+ },
44
+ "field_1": {
45
+ "field_type": "query",
46
+ "fields": {
47
+ "name": "s",
48
+ "type": "string",
49
+ "in": "query",
50
+ "description": "The words to show in Octocat's speech bubble"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "namespace_description": "Get the Zen of GitHub",
56
+ "method": "get",
57
+ "endpoint": "/zen",
58
+ "field_0": {
59
+ "field_type": "header",
60
+ "fields": {
61
+ "name": "accept",
62
+ "type": "string",
63
+ "in": "header",
64
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
65
+ }
66
+ }
67
+ }
68
+ ]
69
+ }
@@ -0,0 +1,342 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get community profile metrics",
5
+ "method": "get",
6
+ "endpoint": "/repos/{owner}/{repo}/community/profile",
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": "Get the weekly commit activity",
37
+ "method": "get",
38
+ "endpoint": "/repos/{owner}/{repo}/stats/code_frequency",
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
+ },
67
+ {
68
+ "namespace_description": "Get the last year of commit activity",
69
+ "method": "get",
70
+ "endpoint": "/repos/{owner}/{repo}/stats/commit_activity",
71
+ "field_0": {
72
+ "field_type": "header",
73
+ "fields": {
74
+ "name": "accept",
75
+ "type": "string",
76
+ "in": "header",
77
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
78
+ }
79
+ },
80
+ "field_1": {
81
+ "field_type": "path",
82
+ "fields": {
83
+ "name": "owner",
84
+ "type": "string",
85
+ "in": "path",
86
+ "description": ""
87
+ }
88
+ },
89
+ "field_2": {
90
+ "field_type": "path",
91
+ "fields": {
92
+ "name": "repo",
93
+ "type": "string",
94
+ "in": "path",
95
+ "description": ""
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "namespace_description": "Get all contributor commit activity",
101
+ "method": "get",
102
+ "endpoint": "/repos/{owner}/{repo}/stats/contributors",
103
+ "field_0": {
104
+ "field_type": "header",
105
+ "fields": {
106
+ "name": "accept",
107
+ "type": "string",
108
+ "in": "header",
109
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
110
+ }
111
+ },
112
+ "field_1": {
113
+ "field_type": "path",
114
+ "fields": {
115
+ "name": "owner",
116
+ "type": "string",
117
+ "in": "path",
118
+ "description": ""
119
+ }
120
+ },
121
+ "field_2": {
122
+ "field_type": "path",
123
+ "fields": {
124
+ "name": "repo",
125
+ "type": "string",
126
+ "in": "path",
127
+ "description": ""
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "namespace_description": "Get the weekly commit count",
133
+ "method": "get",
134
+ "endpoint": "/repos/{owner}/{repo}/stats/participation",
135
+ "field_0": {
136
+ "field_type": "header",
137
+ "fields": {
138
+ "name": "accept",
139
+ "type": "string",
140
+ "in": "header",
141
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
142
+ }
143
+ },
144
+ "field_1": {
145
+ "field_type": "path",
146
+ "fields": {
147
+ "name": "owner",
148
+ "type": "string",
149
+ "in": "path",
150
+ "description": ""
151
+ }
152
+ },
153
+ "field_2": {
154
+ "field_type": "path",
155
+ "fields": {
156
+ "name": "repo",
157
+ "type": "string",
158
+ "in": "path",
159
+ "description": ""
160
+ }
161
+ }
162
+ },
163
+ {
164
+ "namespace_description": "Get the hourly commit count for each day",
165
+ "method": "get",
166
+ "endpoint": "/repos/{owner}/{repo}/stats/punch_card",
167
+ "field_0": {
168
+ "field_type": "header",
169
+ "fields": {
170
+ "name": "accept",
171
+ "type": "string",
172
+ "in": "header",
173
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
174
+ }
175
+ },
176
+ "field_1": {
177
+ "field_type": "path",
178
+ "fields": {
179
+ "name": "owner",
180
+ "type": "string",
181
+ "in": "path",
182
+ "description": ""
183
+ }
184
+ },
185
+ "field_2": {
186
+ "field_type": "path",
187
+ "fields": {
188
+ "name": "repo",
189
+ "type": "string",
190
+ "in": "path",
191
+ "description": ""
192
+ }
193
+ }
194
+ },
195
+ {
196
+ "namespace_description": "Get repository clones",
197
+ "method": "get",
198
+ "endpoint": "/repos/{owner}/{repo}/traffic/clones",
199
+ "field_0": {
200
+ "field_type": "header",
201
+ "fields": {
202
+ "name": "accept",
203
+ "type": "string",
204
+ "in": "header",
205
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
206
+ }
207
+ },
208
+ "field_1": {
209
+ "field_type": "path",
210
+ "fields": {
211
+ "name": "owner",
212
+ "type": "string",
213
+ "in": "path",
214
+ "description": ""
215
+ }
216
+ },
217
+ "field_2": {
218
+ "field_type": "path",
219
+ "fields": {
220
+ "name": "repo",
221
+ "type": "string",
222
+ "in": "path",
223
+ "description": ""
224
+ }
225
+ },
226
+ "field_3": {
227
+ "field_type": "query",
228
+ "fields": {
229
+ "name": "per",
230
+ "type": "string",
231
+ "in": "query",
232
+ "description": "Must be one of: day, week.Default: day"
233
+ }
234
+ }
235
+ },
236
+ {
237
+ "namespace_description": "Get top referral paths",
238
+ "method": "get",
239
+ "endpoint": "/repos/{owner}/{repo}/traffic/popular/paths",
240
+ "field_0": {
241
+ "field_type": "header",
242
+ "fields": {
243
+ "name": "accept",
244
+ "type": "string",
245
+ "in": "header",
246
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
247
+ }
248
+ },
249
+ "field_1": {
250
+ "field_type": "path",
251
+ "fields": {
252
+ "name": "owner",
253
+ "type": "string",
254
+ "in": "path",
255
+ "description": ""
256
+ }
257
+ },
258
+ "field_2": {
259
+ "field_type": "path",
260
+ "fields": {
261
+ "name": "repo",
262
+ "type": "string",
263
+ "in": "path",
264
+ "description": ""
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "namespace_description": "Get top referral sources",
270
+ "method": "get",
271
+ "endpoint": "/repos/{owner}/{repo}/traffic/popular/referrers",
272
+ "field_0": {
273
+ "field_type": "header",
274
+ "fields": {
275
+ "name": "accept",
276
+ "type": "string",
277
+ "in": "header",
278
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
279
+ }
280
+ },
281
+ "field_1": {
282
+ "field_type": "path",
283
+ "fields": {
284
+ "name": "owner",
285
+ "type": "string",
286
+ "in": "path",
287
+ "description": ""
288
+ }
289
+ },
290
+ "field_2": {
291
+ "field_type": "path",
292
+ "fields": {
293
+ "name": "repo",
294
+ "type": "string",
295
+ "in": "path",
296
+ "description": ""
297
+ }
298
+ }
299
+ },
300
+ {
301
+ "namespace_description": "Get page views",
302
+ "method": "get",
303
+ "endpoint": "/repos/{owner}/{repo}/traffic/views",
304
+ "field_0": {
305
+ "field_type": "header",
306
+ "fields": {
307
+ "name": "accept",
308
+ "type": "string",
309
+ "in": "header",
310
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
311
+ }
312
+ },
313
+ "field_1": {
314
+ "field_type": "path",
315
+ "fields": {
316
+ "name": "owner",
317
+ "type": "string",
318
+ "in": "path",
319
+ "description": ""
320
+ }
321
+ },
322
+ "field_2": {
323
+ "field_type": "path",
324
+ "fields": {
325
+ "name": "repo",
326
+ "type": "string",
327
+ "in": "path",
328
+ "description": ""
329
+ }
330
+ },
331
+ "field_3": {
332
+ "field_type": "query",
333
+ "fields": {
334
+ "name": "per",
335
+ "type": "string",
336
+ "in": "query",
337
+ "description": "Must be one of: day, week.Default: day"
338
+ }
339
+ }
340
+ }
341
+ ]
342
+ }