gitabu 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +33 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +65 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/Rakefile +12 -0
- data/gitabu.gemspec +41 -0
- data/lib/gitabu/api/v3/actions.rb +3724 -0
- data/lib/gitabu/api/v3/activity.rb +835 -0
- data/lib/gitabu/api/v3/apps.rb +961 -0
- data/lib/gitabu/api/v3/billing.rb +217 -0
- data/lib/gitabu/api/v3/branches.rb +1098 -0
- data/lib/gitabu/api/v3/checks.rb +384 -0
- data/lib/gitabu/api/v3/code_scanning.rb +315 -0
- data/lib/gitabu/api/v3/codes_of_conduct.rb +92 -0
- data/lib/gitabu/api/v3/codespaces.rb +650 -0
- data/lib/gitabu/api/v3/collaborators.rb +341 -0
- data/lib/gitabu/api/v3/commits.rb +428 -0
- data/lib/gitabu/api/v3/dependabot.rb +419 -0
- data/lib/gitabu/api/v3/deploy_keys.rb +152 -0
- data/lib/gitabu/api/v3/deployments.rb +356 -0
- data/lib/gitabu/api/v3/emojis.rb +67 -0
- data/lib/gitabu/api/v3/enterprise_admin.rb +495 -0
- data/lib/gitabu/api/v3/gists.rb +552 -0
- data/lib/gitabu/api/v3/git.rb +409 -0
- data/lib/gitabu/api/v3/gitignore.rb +92 -0
- data/lib/gitabu/api/v3/interactions.rb +275 -0
- data/lib/gitabu/api/v3/issues.rb +1119 -0
- data/lib/gitabu/api/v3/licenses.rb +118 -0
- data/lib/gitabu/api/v3/markdown.rb +94 -0
- data/lib/gitabu/api/v3/meta.rb +142 -0
- data/lib/gitabu/api/v3/metrics.rb +302 -0
- data/lib/gitabu/api/v3/migrations.rb +631 -0
- data/lib/gitabu/api/v3/orgs.rb +1291 -0
- data/lib/gitabu/api/v3/packages.rb +686 -0
- data/lib/gitabu/api/v3/pages.rb +282 -0
- data/lib/gitabu/api/v3/projects.rb +693 -0
- data/lib/gitabu/api/v3/pulls.rb +816 -0
- data/lib/gitabu/api/v3/rate_limit.rb +67 -0
- data/lib/gitabu/api/v3/reactions.rb +734 -0
- data/lib/gitabu/api/v3/releases.rb +411 -0
- data/lib/gitabu/api/v3/repos.rb +1136 -0
- data/lib/gitabu/api/v3/scim.rb +214 -0
- data/lib/gitabu/api/v3/search.rb +217 -0
- data/lib/gitabu/api/v3/secret_scanning.rb +201 -0
- data/lib/gitabu/api/v3/teams.rb +1963 -0
- data/lib/gitabu/api/v3/users.rb +851 -0
- data/lib/gitabu/api/v3/webhooks.rb +379 -0
- data/lib/gitabu/builder.rb +37 -0
- data/lib/gitabu/client.rb +8 -0
- data/lib/gitabu/generator.rb +75 -0
- data/lib/gitabu/http_client.rb +96 -0
- data/lib/gitabu/items.rb +110 -0
- data/lib/gitabu/public/api/v3/actions.json +5779 -0
- data/lib/gitabu/public/api/v3/activity.json +1248 -0
- data/lib/gitabu/public/api/v3/apps.json +1174 -0
- data/lib/gitabu/public/api/v3/billing.json +183 -0
- data/lib/gitabu/public/api/v3/branches.json +1886 -0
- data/lib/gitabu/public/api/v3/checks.json +856 -0
- data/lib/gitabu/public/api/v3/code_scanning.json +666 -0
- data/lib/gitabu/public/api/v3/codes_of_conduct.json +41 -0
- data/lib/gitabu/public/api/v3/codespaces.json +884 -0
- data/lib/gitabu/public/api/v3/collaborators.json +464 -0
- data/lib/gitabu/public/api/v3/commits.json +830 -0
- data/lib/gitabu/public/api/v3/dependabot.json +596 -0
- data/lib/gitabu/public/api/v3/deploy_keys.json +195 -0
- data/lib/gitabu/public/api/v3/deployments.json +698 -0
- data/lib/gitabu/public/api/v3/emojis.json +18 -0
- data/lib/gitabu/public/api/v3/enterprise_admin.json +881 -0
- data/lib/gitabu/public/api/v3/gists.json +689 -0
- data/lib/gitabu/public/api/v3/git.json +735 -0
- data/lib/gitabu/public/api/v3/gitignore.json +41 -0
- data/lib/gitabu/public/api/v3/interactions.json +265 -0
- data/lib/gitabu/public/api/v3/issues.json +2359 -0
- data/lib/gitabu/public/api/v3/licenses.json +100 -0
- data/lib/gitabu/public/api/v3/markdown.json +59 -0
- data/lib/gitabu/public/api/v3/meta.json +69 -0
- data/lib/gitabu/public/api/v3/metrics.json +342 -0
- data/lib/gitabu/public/api/v3/migrations.json +960 -0
- data/lib/gitabu/public/api/v3/orgs.json +1989 -0
- data/lib/gitabu/public/api/v3/packages.json +1078 -0
- data/lib/gitabu/public/api/v3/pages.json +373 -0
- data/lib/gitabu/public/api/v3/projects.json +966 -0
- data/lib/gitabu/public/api/v3/pulls.json +1768 -0
- data/lib/gitabu/public/api/v3/rate_limit.json +18 -0
- data/lib/gitabu/public/api/v3/reactions.json +1425 -0
- data/lib/gitabu/public/api/v3/releases.json +753 -0
- data/lib/gitabu/public/api/v3/repos.json +2314 -0
- data/lib/gitabu/public/api/v3/scim.json +412 -0
- data/lib/gitabu/public/api/v3/search.json +408 -0
- data/lib/gitabu/public/api/v3/secret_scanning.json +385 -0
- data/lib/gitabu/public/api/v3/teams.json +3126 -0
- data/lib/gitabu/public/api/v3/users.json +956 -0
- data/lib/gitabu/public/api/v3/webhooks.json +667 -0
- data/lib/gitabu/run.rb +237 -0
- data/lib/gitabu/scraper.rb +86 -0
- data/lib/gitabu/templates/template.rb.erb +70 -0
- data/lib/gitabu/version.rb +6 -0
- data/lib/gitabu.rb +57 -0
- data/sig/gitabu.rbs +4 -0
- metadata +177 -0
@@ -0,0 +1,830 @@
|
|
1
|
+
{
|
2
|
+
"result": [
|
3
|
+
{
|
4
|
+
"namespace_description": "List commits",
|
5
|
+
"method": "get",
|
6
|
+
"endpoint": "/repos/{owner}/{repo}/commits",
|
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": "query",
|
36
|
+
"fields": {
|
37
|
+
"name": "sha",
|
38
|
+
"type": "string",
|
39
|
+
"in": "query",
|
40
|
+
"description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually master)."
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"field_4": {
|
44
|
+
"field_type": "query",
|
45
|
+
"fields": {
|
46
|
+
"name": "path",
|
47
|
+
"type": "string",
|
48
|
+
"in": "query",
|
49
|
+
"description": "Only commits containing this file path will be returned."
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"field_5": {
|
53
|
+
"field_type": "query",
|
54
|
+
"fields": {
|
55
|
+
"name": "author",
|
56
|
+
"type": "string",
|
57
|
+
"in": "query",
|
58
|
+
"description": "GitHub login or email address by which to filter by commit author."
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"field_6": {
|
62
|
+
"field_type": "query",
|
63
|
+
"fields": {
|
64
|
+
"name": "since",
|
65
|
+
"type": "string",
|
66
|
+
"in": "query",
|
67
|
+
"description": "Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"field_7": {
|
71
|
+
"field_type": "query",
|
72
|
+
"fields": {
|
73
|
+
"name": "until",
|
74
|
+
"type": "string",
|
75
|
+
"in": "query",
|
76
|
+
"description": "Only commits before this date will be returned. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ."
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"field_8": {
|
80
|
+
"field_type": "query",
|
81
|
+
"fields": {
|
82
|
+
"name": "per_page",
|
83
|
+
"type": "integer",
|
84
|
+
"in": "query",
|
85
|
+
"description": "Results per page (max 100)Default: 30"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"field_9": {
|
89
|
+
"field_type": "query",
|
90
|
+
"fields": {
|
91
|
+
"name": "page",
|
92
|
+
"type": "integer",
|
93
|
+
"in": "query",
|
94
|
+
"description": "Page number of the results to fetch.Default: 1"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"namespace_description": "List branches for HEAD commit",
|
100
|
+
"method": "get",
|
101
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",
|
102
|
+
"field_0": {
|
103
|
+
"field_type": "header",
|
104
|
+
"fields": {
|
105
|
+
"name": "accept",
|
106
|
+
"type": "string",
|
107
|
+
"in": "header",
|
108
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"field_1": {
|
112
|
+
"field_type": "path",
|
113
|
+
"fields": {
|
114
|
+
"name": "owner",
|
115
|
+
"type": "string",
|
116
|
+
"in": "path",
|
117
|
+
"description": ""
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"field_2": {
|
121
|
+
"field_type": "path",
|
122
|
+
"fields": {
|
123
|
+
"name": "repo",
|
124
|
+
"type": "string",
|
125
|
+
"in": "path",
|
126
|
+
"description": ""
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"field_3": {
|
130
|
+
"field_type": "path",
|
131
|
+
"fields": {
|
132
|
+
"name": "commit_sha",
|
133
|
+
"type": "string",
|
134
|
+
"in": "path",
|
135
|
+
"description": "commit_sha parameter"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"namespace_description": "List pull requests associated with a commit",
|
141
|
+
"method": "get",
|
142
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
143
|
+
"field_0": {
|
144
|
+
"field_type": "header",
|
145
|
+
"fields": {
|
146
|
+
"name": "accept",
|
147
|
+
"type": "string",
|
148
|
+
"in": "header",
|
149
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"field_1": {
|
153
|
+
"field_type": "path",
|
154
|
+
"fields": {
|
155
|
+
"name": "owner",
|
156
|
+
"type": "string",
|
157
|
+
"in": "path",
|
158
|
+
"description": ""
|
159
|
+
}
|
160
|
+
},
|
161
|
+
"field_2": {
|
162
|
+
"field_type": "path",
|
163
|
+
"fields": {
|
164
|
+
"name": "repo",
|
165
|
+
"type": "string",
|
166
|
+
"in": "path",
|
167
|
+
"description": ""
|
168
|
+
}
|
169
|
+
},
|
170
|
+
"field_3": {
|
171
|
+
"field_type": "path",
|
172
|
+
"fields": {
|
173
|
+
"name": "commit_sha",
|
174
|
+
"type": "string",
|
175
|
+
"in": "path",
|
176
|
+
"description": "commit_sha parameter"
|
177
|
+
}
|
178
|
+
},
|
179
|
+
"field_4": {
|
180
|
+
"field_type": "query",
|
181
|
+
"fields": {
|
182
|
+
"name": "per_page",
|
183
|
+
"type": "integer",
|
184
|
+
"in": "query",
|
185
|
+
"description": "Results per page (max 100)Default: 30"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"field_5": {
|
189
|
+
"field_type": "query",
|
190
|
+
"fields": {
|
191
|
+
"name": "page",
|
192
|
+
"type": "integer",
|
193
|
+
"in": "query",
|
194
|
+
"description": "Page number of the results to fetch.Default: 1"
|
195
|
+
}
|
196
|
+
}
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"namespace_description": "Get a commit",
|
200
|
+
"method": "get",
|
201
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{ref}",
|
202
|
+
"field_0": {
|
203
|
+
"field_type": "header",
|
204
|
+
"fields": {
|
205
|
+
"name": "accept",
|
206
|
+
"type": "string",
|
207
|
+
"in": "header",
|
208
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
209
|
+
}
|
210
|
+
},
|
211
|
+
"field_1": {
|
212
|
+
"field_type": "path",
|
213
|
+
"fields": {
|
214
|
+
"name": "owner",
|
215
|
+
"type": "string",
|
216
|
+
"in": "path",
|
217
|
+
"description": ""
|
218
|
+
}
|
219
|
+
},
|
220
|
+
"field_2": {
|
221
|
+
"field_type": "path",
|
222
|
+
"fields": {
|
223
|
+
"name": "repo",
|
224
|
+
"type": "string",
|
225
|
+
"in": "path",
|
226
|
+
"description": ""
|
227
|
+
}
|
228
|
+
},
|
229
|
+
"field_3": {
|
230
|
+
"field_type": "query",
|
231
|
+
"fields": {
|
232
|
+
"name": "page",
|
233
|
+
"type": "integer",
|
234
|
+
"in": "query",
|
235
|
+
"description": "Page number of the results to fetch.Default: 1"
|
236
|
+
}
|
237
|
+
},
|
238
|
+
"field_4": {
|
239
|
+
"field_type": "query",
|
240
|
+
"fields": {
|
241
|
+
"name": "per_page",
|
242
|
+
"type": "integer",
|
243
|
+
"in": "query",
|
244
|
+
"description": "Results per page (max 100)Default: 30"
|
245
|
+
}
|
246
|
+
},
|
247
|
+
"field_5": {
|
248
|
+
"field_type": "path",
|
249
|
+
"fields": {
|
250
|
+
"name": "ref",
|
251
|
+
"type": "string",
|
252
|
+
"in": "path",
|
253
|
+
"description": "ref parameter"
|
254
|
+
}
|
255
|
+
}
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"namespace_description": "Compare two commits",
|
259
|
+
"method": "get",
|
260
|
+
"endpoint": "/repos/{owner}/{repo}/compare/{basehead}",
|
261
|
+
"field_0": {
|
262
|
+
"field_type": "header",
|
263
|
+
"fields": {
|
264
|
+
"name": "accept",
|
265
|
+
"type": "string",
|
266
|
+
"in": "header",
|
267
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
268
|
+
}
|
269
|
+
},
|
270
|
+
"field_1": {
|
271
|
+
"field_type": "path",
|
272
|
+
"fields": {
|
273
|
+
"name": "owner",
|
274
|
+
"type": "string",
|
275
|
+
"in": "path",
|
276
|
+
"description": ""
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"field_2": {
|
280
|
+
"field_type": "path",
|
281
|
+
"fields": {
|
282
|
+
"name": "repo",
|
283
|
+
"type": "string",
|
284
|
+
"in": "path",
|
285
|
+
"description": ""
|
286
|
+
}
|
287
|
+
},
|
288
|
+
"field_3": {
|
289
|
+
"field_type": "query",
|
290
|
+
"fields": {
|
291
|
+
"name": "page",
|
292
|
+
"type": "integer",
|
293
|
+
"in": "query",
|
294
|
+
"description": "Page number of the results to fetch.Default: 1"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
"field_4": {
|
298
|
+
"field_type": "query",
|
299
|
+
"fields": {
|
300
|
+
"name": "per_page",
|
301
|
+
"type": "integer",
|
302
|
+
"in": "query",
|
303
|
+
"description": "Results per page (max 100)Default: 30"
|
304
|
+
}
|
305
|
+
},
|
306
|
+
"field_5": {
|
307
|
+
"field_type": "path",
|
308
|
+
"fields": {
|
309
|
+
"name": "basehead",
|
310
|
+
"type": "string",
|
311
|
+
"in": "path",
|
312
|
+
"description": "The base branch and head branch to compare. This parameter expects the format {base}...{head}."
|
313
|
+
}
|
314
|
+
}
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"namespace_description": "List commit comments for a repository",
|
318
|
+
"method": "get",
|
319
|
+
"endpoint": "/repos/{owner}/{repo}/comments",
|
320
|
+
"field_0": {
|
321
|
+
"field_type": "header",
|
322
|
+
"fields": {
|
323
|
+
"name": "accept",
|
324
|
+
"type": "string",
|
325
|
+
"in": "header",
|
326
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
327
|
+
}
|
328
|
+
},
|
329
|
+
"field_1": {
|
330
|
+
"field_type": "path",
|
331
|
+
"fields": {
|
332
|
+
"name": "owner",
|
333
|
+
"type": "string",
|
334
|
+
"in": "path",
|
335
|
+
"description": ""
|
336
|
+
}
|
337
|
+
},
|
338
|
+
"field_2": {
|
339
|
+
"field_type": "path",
|
340
|
+
"fields": {
|
341
|
+
"name": "repo",
|
342
|
+
"type": "string",
|
343
|
+
"in": "path",
|
344
|
+
"description": ""
|
345
|
+
}
|
346
|
+
},
|
347
|
+
"field_3": {
|
348
|
+
"field_type": "query",
|
349
|
+
"fields": {
|
350
|
+
"name": "per_page",
|
351
|
+
"type": "integer",
|
352
|
+
"in": "query",
|
353
|
+
"description": "Results per page (max 100)Default: 30"
|
354
|
+
}
|
355
|
+
},
|
356
|
+
"field_4": {
|
357
|
+
"field_type": "query",
|
358
|
+
"fields": {
|
359
|
+
"name": "page",
|
360
|
+
"type": "integer",
|
361
|
+
"in": "query",
|
362
|
+
"description": "Page number of the results to fetch.Default: 1"
|
363
|
+
}
|
364
|
+
}
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"namespace_description": "Get a commit comment",
|
368
|
+
"method": "get",
|
369
|
+
"endpoint": "/repos/{owner}/{repo}/comments/{comment_id}",
|
370
|
+
"field_0": {
|
371
|
+
"field_type": "header",
|
372
|
+
"fields": {
|
373
|
+
"name": "accept",
|
374
|
+
"type": "string",
|
375
|
+
"in": "header",
|
376
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
377
|
+
}
|
378
|
+
},
|
379
|
+
"field_1": {
|
380
|
+
"field_type": "path",
|
381
|
+
"fields": {
|
382
|
+
"name": "owner",
|
383
|
+
"type": "string",
|
384
|
+
"in": "path",
|
385
|
+
"description": ""
|
386
|
+
}
|
387
|
+
},
|
388
|
+
"field_2": {
|
389
|
+
"field_type": "path",
|
390
|
+
"fields": {
|
391
|
+
"name": "repo",
|
392
|
+
"type": "string",
|
393
|
+
"in": "path",
|
394
|
+
"description": ""
|
395
|
+
}
|
396
|
+
},
|
397
|
+
"field_3": {
|
398
|
+
"field_type": "path",
|
399
|
+
"fields": {
|
400
|
+
"name": "comment_id",
|
401
|
+
"type": "integer",
|
402
|
+
"in": "path",
|
403
|
+
"description": "comment_id parameter"
|
404
|
+
}
|
405
|
+
}
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"namespace_description": "Update a commit comment",
|
409
|
+
"method": "patch",
|
410
|
+
"endpoint": "/repos/{owner}/{repo}/comments/{comment_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": "comment_id",
|
442
|
+
"type": "integer",
|
443
|
+
"in": "path",
|
444
|
+
"description": "comment_id parameter"
|
445
|
+
}
|
446
|
+
},
|
447
|
+
"field_4": {
|
448
|
+
"field_type": "body",
|
449
|
+
"fields": {
|
450
|
+
"name": "body",
|
451
|
+
"type": "string",
|
452
|
+
"in": "body",
|
453
|
+
"description": "Required. The contents of the comment"
|
454
|
+
}
|
455
|
+
}
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"namespace_description": "Delete a commit comment",
|
459
|
+
"method": "delete",
|
460
|
+
"endpoint": "/repos/{owner}/{repo}/comments/{comment_id}",
|
461
|
+
"field_0": {
|
462
|
+
"field_type": "header",
|
463
|
+
"fields": {
|
464
|
+
"name": "accept",
|
465
|
+
"type": "string",
|
466
|
+
"in": "header",
|
467
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
468
|
+
}
|
469
|
+
},
|
470
|
+
"field_1": {
|
471
|
+
"field_type": "path",
|
472
|
+
"fields": {
|
473
|
+
"name": "owner",
|
474
|
+
"type": "string",
|
475
|
+
"in": "path",
|
476
|
+
"description": ""
|
477
|
+
}
|
478
|
+
},
|
479
|
+
"field_2": {
|
480
|
+
"field_type": "path",
|
481
|
+
"fields": {
|
482
|
+
"name": "repo",
|
483
|
+
"type": "string",
|
484
|
+
"in": "path",
|
485
|
+
"description": ""
|
486
|
+
}
|
487
|
+
},
|
488
|
+
"field_3": {
|
489
|
+
"field_type": "path",
|
490
|
+
"fields": {
|
491
|
+
"name": "comment_id",
|
492
|
+
"type": "integer",
|
493
|
+
"in": "path",
|
494
|
+
"description": "comment_id parameter"
|
495
|
+
}
|
496
|
+
}
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"namespace_description": "List commit comments",
|
500
|
+
"method": "get",
|
501
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
502
|
+
"field_0": {
|
503
|
+
"field_type": "header",
|
504
|
+
"fields": {
|
505
|
+
"name": "accept",
|
506
|
+
"type": "string",
|
507
|
+
"in": "header",
|
508
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
509
|
+
}
|
510
|
+
},
|
511
|
+
"field_1": {
|
512
|
+
"field_type": "path",
|
513
|
+
"fields": {
|
514
|
+
"name": "owner",
|
515
|
+
"type": "string",
|
516
|
+
"in": "path",
|
517
|
+
"description": ""
|
518
|
+
}
|
519
|
+
},
|
520
|
+
"field_2": {
|
521
|
+
"field_type": "path",
|
522
|
+
"fields": {
|
523
|
+
"name": "repo",
|
524
|
+
"type": "string",
|
525
|
+
"in": "path",
|
526
|
+
"description": ""
|
527
|
+
}
|
528
|
+
},
|
529
|
+
"field_3": {
|
530
|
+
"field_type": "path",
|
531
|
+
"fields": {
|
532
|
+
"name": "commit_sha",
|
533
|
+
"type": "string",
|
534
|
+
"in": "path",
|
535
|
+
"description": "commit_sha parameter"
|
536
|
+
}
|
537
|
+
},
|
538
|
+
"field_4": {
|
539
|
+
"field_type": "query",
|
540
|
+
"fields": {
|
541
|
+
"name": "per_page",
|
542
|
+
"type": "integer",
|
543
|
+
"in": "query",
|
544
|
+
"description": "Results per page (max 100)Default: 30"
|
545
|
+
}
|
546
|
+
},
|
547
|
+
"field_5": {
|
548
|
+
"field_type": "query",
|
549
|
+
"fields": {
|
550
|
+
"name": "page",
|
551
|
+
"type": "integer",
|
552
|
+
"in": "query",
|
553
|
+
"description": "Page number of the results to fetch.Default: 1"
|
554
|
+
}
|
555
|
+
}
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"namespace_description": "Create a commit comment",
|
559
|
+
"method": "post",
|
560
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
561
|
+
"field_0": {
|
562
|
+
"field_type": "header",
|
563
|
+
"fields": {
|
564
|
+
"name": "accept",
|
565
|
+
"type": "string",
|
566
|
+
"in": "header",
|
567
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
568
|
+
}
|
569
|
+
},
|
570
|
+
"field_1": {
|
571
|
+
"field_type": "path",
|
572
|
+
"fields": {
|
573
|
+
"name": "owner",
|
574
|
+
"type": "string",
|
575
|
+
"in": "path",
|
576
|
+
"description": ""
|
577
|
+
}
|
578
|
+
},
|
579
|
+
"field_2": {
|
580
|
+
"field_type": "path",
|
581
|
+
"fields": {
|
582
|
+
"name": "repo",
|
583
|
+
"type": "string",
|
584
|
+
"in": "path",
|
585
|
+
"description": ""
|
586
|
+
}
|
587
|
+
},
|
588
|
+
"field_3": {
|
589
|
+
"field_type": "path",
|
590
|
+
"fields": {
|
591
|
+
"name": "commit_sha",
|
592
|
+
"type": "string",
|
593
|
+
"in": "path",
|
594
|
+
"description": "commit_sha parameter"
|
595
|
+
}
|
596
|
+
},
|
597
|
+
"field_4": {
|
598
|
+
"field_type": "body",
|
599
|
+
"fields": {
|
600
|
+
"name": "body",
|
601
|
+
"type": "string",
|
602
|
+
"in": "body",
|
603
|
+
"description": "Required. The contents of the comment."
|
604
|
+
}
|
605
|
+
},
|
606
|
+
"field_5": {
|
607
|
+
"field_type": "body",
|
608
|
+
"fields": {
|
609
|
+
"name": "path",
|
610
|
+
"type": "string",
|
611
|
+
"in": "body",
|
612
|
+
"description": "Relative path of the file to comment on."
|
613
|
+
}
|
614
|
+
},
|
615
|
+
"field_6": {
|
616
|
+
"field_type": "body",
|
617
|
+
"fields": {
|
618
|
+
"name": "position",
|
619
|
+
"type": "integer",
|
620
|
+
"in": "body",
|
621
|
+
"description": "Line index in the diff to comment on."
|
622
|
+
}
|
623
|
+
},
|
624
|
+
"field_7": {
|
625
|
+
"field_type": "body",
|
626
|
+
"fields": {
|
627
|
+
"name": "line",
|
628
|
+
"type": "integer",
|
629
|
+
"in": "body",
|
630
|
+
"description": "Deprecated. Use position parameter instead. Line number in the file to comment on."
|
631
|
+
}
|
632
|
+
}
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"namespace_description": "Get the combined status for a specific reference",
|
636
|
+
"method": "get",
|
637
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{ref}/status",
|
638
|
+
"field_0": {
|
639
|
+
"field_type": "header",
|
640
|
+
"fields": {
|
641
|
+
"name": "accept",
|
642
|
+
"type": "string",
|
643
|
+
"in": "header",
|
644
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
645
|
+
}
|
646
|
+
},
|
647
|
+
"field_1": {
|
648
|
+
"field_type": "path",
|
649
|
+
"fields": {
|
650
|
+
"name": "owner",
|
651
|
+
"type": "string",
|
652
|
+
"in": "path",
|
653
|
+
"description": ""
|
654
|
+
}
|
655
|
+
},
|
656
|
+
"field_2": {
|
657
|
+
"field_type": "path",
|
658
|
+
"fields": {
|
659
|
+
"name": "repo",
|
660
|
+
"type": "string",
|
661
|
+
"in": "path",
|
662
|
+
"description": ""
|
663
|
+
}
|
664
|
+
},
|
665
|
+
"field_3": {
|
666
|
+
"field_type": "path",
|
667
|
+
"fields": {
|
668
|
+
"name": "ref",
|
669
|
+
"type": "string",
|
670
|
+
"in": "path",
|
671
|
+
"description": "ref parameter"
|
672
|
+
}
|
673
|
+
},
|
674
|
+
"field_4": {
|
675
|
+
"field_type": "query",
|
676
|
+
"fields": {
|
677
|
+
"name": "per_page",
|
678
|
+
"type": "integer",
|
679
|
+
"in": "query",
|
680
|
+
"description": "Results per page (max 100)Default: 30"
|
681
|
+
}
|
682
|
+
},
|
683
|
+
"field_5": {
|
684
|
+
"field_type": "query",
|
685
|
+
"fields": {
|
686
|
+
"name": "page",
|
687
|
+
"type": "integer",
|
688
|
+
"in": "query",
|
689
|
+
"description": "Page number of the results to fetch.Default: 1"
|
690
|
+
}
|
691
|
+
}
|
692
|
+
},
|
693
|
+
{
|
694
|
+
"namespace_description": "List commit statuses for a reference",
|
695
|
+
"method": "get",
|
696
|
+
"endpoint": "/repos/{owner}/{repo}/commits/{ref}/statuses",
|
697
|
+
"field_0": {
|
698
|
+
"field_type": "header",
|
699
|
+
"fields": {
|
700
|
+
"name": "accept",
|
701
|
+
"type": "string",
|
702
|
+
"in": "header",
|
703
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
704
|
+
}
|
705
|
+
},
|
706
|
+
"field_1": {
|
707
|
+
"field_type": "path",
|
708
|
+
"fields": {
|
709
|
+
"name": "owner",
|
710
|
+
"type": "string",
|
711
|
+
"in": "path",
|
712
|
+
"description": ""
|
713
|
+
}
|
714
|
+
},
|
715
|
+
"field_2": {
|
716
|
+
"field_type": "path",
|
717
|
+
"fields": {
|
718
|
+
"name": "repo",
|
719
|
+
"type": "string",
|
720
|
+
"in": "path",
|
721
|
+
"description": ""
|
722
|
+
}
|
723
|
+
},
|
724
|
+
"field_3": {
|
725
|
+
"field_type": "path",
|
726
|
+
"fields": {
|
727
|
+
"name": "ref",
|
728
|
+
"type": "string",
|
729
|
+
"in": "path",
|
730
|
+
"description": "ref parameter"
|
731
|
+
}
|
732
|
+
},
|
733
|
+
"field_4": {
|
734
|
+
"field_type": "query",
|
735
|
+
"fields": {
|
736
|
+
"name": "per_page",
|
737
|
+
"type": "integer",
|
738
|
+
"in": "query",
|
739
|
+
"description": "Results per page (max 100)Default: 30"
|
740
|
+
}
|
741
|
+
},
|
742
|
+
"field_5": {
|
743
|
+
"field_type": "query",
|
744
|
+
"fields": {
|
745
|
+
"name": "page",
|
746
|
+
"type": "integer",
|
747
|
+
"in": "query",
|
748
|
+
"description": "Page number of the results to fetch.Default: 1"
|
749
|
+
}
|
750
|
+
}
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"namespace_description": "Create a commit status",
|
754
|
+
"method": "post",
|
755
|
+
"endpoint": "/repos/{owner}/{repo}/statuses/{sha}",
|
756
|
+
"field_0": {
|
757
|
+
"field_type": "header",
|
758
|
+
"fields": {
|
759
|
+
"name": "accept",
|
760
|
+
"type": "string",
|
761
|
+
"in": "header",
|
762
|
+
"description": "Setting toapplication/vnd.github.v3+json is recommended."
|
763
|
+
}
|
764
|
+
},
|
765
|
+
"field_1": {
|
766
|
+
"field_type": "path",
|
767
|
+
"fields": {
|
768
|
+
"name": "owner",
|
769
|
+
"type": "string",
|
770
|
+
"in": "path",
|
771
|
+
"description": ""
|
772
|
+
}
|
773
|
+
},
|
774
|
+
"field_2": {
|
775
|
+
"field_type": "path",
|
776
|
+
"fields": {
|
777
|
+
"name": "repo",
|
778
|
+
"type": "string",
|
779
|
+
"in": "path",
|
780
|
+
"description": ""
|
781
|
+
}
|
782
|
+
},
|
783
|
+
"field_3": {
|
784
|
+
"field_type": "path",
|
785
|
+
"fields": {
|
786
|
+
"name": "sha",
|
787
|
+
"type": "string",
|
788
|
+
"in": "path",
|
789
|
+
"description": ""
|
790
|
+
}
|
791
|
+
},
|
792
|
+
"field_4": {
|
793
|
+
"field_type": "body",
|
794
|
+
"fields": {
|
795
|
+
"name": "state",
|
796
|
+
"type": "string",
|
797
|
+
"in": "body",
|
798
|
+
"description": "Required. The state of the status. Can be one of error, failure, pending, or success."
|
799
|
+
}
|
800
|
+
},
|
801
|
+
"field_5": {
|
802
|
+
"field_type": "body",
|
803
|
+
"fields": {
|
804
|
+
"name": "target_url",
|
805
|
+
"type": "string",
|
806
|
+
"in": "body",
|
807
|
+
"description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status.\nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:\nhttp://ci.example.com/user/repo/build/sha"
|
808
|
+
}
|
809
|
+
},
|
810
|
+
"field_6": {
|
811
|
+
"field_type": "body",
|
812
|
+
"fields": {
|
813
|
+
"name": "description",
|
814
|
+
"type": "string",
|
815
|
+
"in": "body",
|
816
|
+
"description": "A short description of the status."
|
817
|
+
}
|
818
|
+
},
|
819
|
+
"field_7": {
|
820
|
+
"field_type": "body",
|
821
|
+
"fields": {
|
822
|
+
"name": "context",
|
823
|
+
"type": "string",
|
824
|
+
"in": "body",
|
825
|
+
"description": "A string label to differentiate this status from the status of other systems. This field is case-insensitive.Default: default"
|
826
|
+
}
|
827
|
+
}
|
828
|
+
}
|
829
|
+
]
|
830
|
+
}
|