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,41 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get all gitignore templates",
5
+ "method": "get",
6
+ "endpoint": "/gitignore/templates",
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 a gitignore template",
19
+ "method": "get",
20
+ "endpoint": "/gitignore/templates/{name}",
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
+ "field_1": {
31
+ "field_type": "path",
32
+ "fields": {
33
+ "name": "name",
34
+ "type": "string",
35
+ "in": "path",
36
+ "description": ""
37
+ }
38
+ }
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,265 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "Get interaction restrictions for an organization",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/interaction-limits",
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": "org",
20
+ "type": "string",
21
+ "in": "path",
22
+ "description": ""
23
+ }
24
+ }
25
+ },
26
+ {
27
+ "namespace_description": "Set interaction restrictions for an organization",
28
+ "method": "put",
29
+ "endpoint": "/orgs/{org}/interaction-limits",
30
+ "field_0": {
31
+ "field_type": "header",
32
+ "fields": {
33
+ "name": "accept",
34
+ "type": "string",
35
+ "in": "header",
36
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
37
+ }
38
+ },
39
+ "field_1": {
40
+ "field_type": "path",
41
+ "fields": {
42
+ "name": "org",
43
+ "type": "string",
44
+ "in": "path",
45
+ "description": ""
46
+ }
47
+ },
48
+ "field_2": {
49
+ "field_type": "body",
50
+ "fields": {
51
+ "name": "limit",
52
+ "type": "string",
53
+ "in": "body",
54
+ "description": "Required. The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: existing_users, contributors_only, collaborators_only."
55
+ }
56
+ },
57
+ "field_3": {
58
+ "field_type": "body",
59
+ "fields": {
60
+ "name": "expiry",
61
+ "type": "string",
62
+ "in": "body",
63
+ "description": "The duration of the interaction restriction. Can be one of: one_day, three_days, one_week, one_month, six_months. Default: one_day."
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "namespace_description": "Remove interaction restrictions for an organization",
69
+ "method": "delete",
70
+ "endpoint": "/orgs/{org}/interaction-limits",
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": "org",
84
+ "type": "string",
85
+ "in": "path",
86
+ "description": ""
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "namespace_description": "Get interaction restrictions for a repository",
92
+ "method": "get",
93
+ "endpoint": "/repos/{owner}/{repo}/interaction-limits",
94
+ "field_0": {
95
+ "field_type": "header",
96
+ "fields": {
97
+ "name": "accept",
98
+ "type": "string",
99
+ "in": "header",
100
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
101
+ }
102
+ },
103
+ "field_1": {
104
+ "field_type": "path",
105
+ "fields": {
106
+ "name": "owner",
107
+ "type": "string",
108
+ "in": "path",
109
+ "description": ""
110
+ }
111
+ },
112
+ "field_2": {
113
+ "field_type": "path",
114
+ "fields": {
115
+ "name": "repo",
116
+ "type": "string",
117
+ "in": "path",
118
+ "description": ""
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "namespace_description": "Set interaction restrictions for a repository",
124
+ "method": "put",
125
+ "endpoint": "/repos/{owner}/{repo}/interaction-limits",
126
+ "field_0": {
127
+ "field_type": "header",
128
+ "fields": {
129
+ "name": "accept",
130
+ "type": "string",
131
+ "in": "header",
132
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
133
+ }
134
+ },
135
+ "field_1": {
136
+ "field_type": "path",
137
+ "fields": {
138
+ "name": "owner",
139
+ "type": "string",
140
+ "in": "path",
141
+ "description": ""
142
+ }
143
+ },
144
+ "field_2": {
145
+ "field_type": "path",
146
+ "fields": {
147
+ "name": "repo",
148
+ "type": "string",
149
+ "in": "path",
150
+ "description": ""
151
+ }
152
+ },
153
+ "field_3": {
154
+ "field_type": "body",
155
+ "fields": {
156
+ "name": "limit",
157
+ "type": "string",
158
+ "in": "body",
159
+ "description": "Required. The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: existing_users, contributors_only, collaborators_only."
160
+ }
161
+ },
162
+ "field_4": {
163
+ "field_type": "body",
164
+ "fields": {
165
+ "name": "expiry",
166
+ "type": "string",
167
+ "in": "body",
168
+ "description": "The duration of the interaction restriction. Can be one of: one_day, three_days, one_week, one_month, six_months. Default: one_day."
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "namespace_description": "Remove interaction restrictions for a repository",
174
+ "method": "delete",
175
+ "endpoint": "/repos/{owner}/{repo}/interaction-limits",
176
+ "field_0": {
177
+ "field_type": "header",
178
+ "fields": {
179
+ "name": "accept",
180
+ "type": "string",
181
+ "in": "header",
182
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
183
+ }
184
+ },
185
+ "field_1": {
186
+ "field_type": "path",
187
+ "fields": {
188
+ "name": "owner",
189
+ "type": "string",
190
+ "in": "path",
191
+ "description": ""
192
+ }
193
+ },
194
+ "field_2": {
195
+ "field_type": "path",
196
+ "fields": {
197
+ "name": "repo",
198
+ "type": "string",
199
+ "in": "path",
200
+ "description": ""
201
+ }
202
+ }
203
+ },
204
+ {
205
+ "namespace_description": "Get interaction restrictions for your public repositories",
206
+ "method": "get",
207
+ "endpoint": "/user/interaction-limits",
208
+ "field_0": {
209
+ "field_type": "header",
210
+ "fields": {
211
+ "name": "accept",
212
+ "type": "string",
213
+ "in": "header",
214
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "namespace_description": "Set interaction restrictions for your public repositories",
220
+ "method": "put",
221
+ "endpoint": "/user/interaction-limits",
222
+ "field_0": {
223
+ "field_type": "header",
224
+ "fields": {
225
+ "name": "accept",
226
+ "type": "string",
227
+ "in": "header",
228
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
229
+ }
230
+ },
231
+ "field_1": {
232
+ "field_type": "body",
233
+ "fields": {
234
+ "name": "limit",
235
+ "type": "string",
236
+ "in": "body",
237
+ "description": "Required. The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: existing_users, contributors_only, collaborators_only."
238
+ }
239
+ },
240
+ "field_2": {
241
+ "field_type": "body",
242
+ "fields": {
243
+ "name": "expiry",
244
+ "type": "string",
245
+ "in": "body",
246
+ "description": "The duration of the interaction restriction. Can be one of: one_day, three_days, one_week, one_month, six_months. Default: one_day."
247
+ }
248
+ }
249
+ },
250
+ {
251
+ "namespace_description": "Remove interaction restrictions from your public repositories",
252
+ "method": "delete",
253
+ "endpoint": "/user/interaction-limits",
254
+ "field_0": {
255
+ "field_type": "header",
256
+ "fields": {
257
+ "name": "accept",
258
+ "type": "string",
259
+ "in": "header",
260
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
261
+ }
262
+ }
263
+ }
264
+ ]
265
+ }