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,960 @@
1
+ {
2
+ "result": [
3
+ {
4
+ "namespace_description": "List organization migrations",
5
+ "method": "get",
6
+ "endpoint": "/orgs/{org}/migrations",
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
+ "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
+ "field_4": {
44
+ "field_type": "query",
45
+ "fields": {
46
+ "name": "exclude",
47
+ "type": "array",
48
+ "in": "query",
49
+ "description": "Exclude attributes from the API response to improve performance"
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "namespace_description": "Start an organization migration",
55
+ "method": "post",
56
+ "endpoint": "/orgs/{org}/migrations",
57
+ "field_0": {
58
+ "field_type": "header",
59
+ "fields": {
60
+ "name": "accept",
61
+ "type": "string",
62
+ "in": "header",
63
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
64
+ }
65
+ },
66
+ "field_1": {
67
+ "field_type": "path",
68
+ "fields": {
69
+ "name": "org",
70
+ "type": "string",
71
+ "in": "path",
72
+ "description": ""
73
+ }
74
+ },
75
+ "field_2": {
76
+ "field_type": "body",
77
+ "fields": {
78
+ "name": "repositories",
79
+ "type": "array of strings",
80
+ "in": "body",
81
+ "description": "Required. A list of arrays indicating which repositories should be migrated."
82
+ }
83
+ },
84
+ "field_3": {
85
+ "field_type": "body",
86
+ "fields": {
87
+ "name": "lock_repositories",
88
+ "type": "boolean",
89
+ "in": "body",
90
+ "description": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data."
91
+ }
92
+ },
93
+ "field_4": {
94
+ "field_type": "body",
95
+ "fields": {
96
+ "name": "exclude_attachments",
97
+ "type": "boolean",
98
+ "in": "body",
99
+ "description": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size)."
100
+ }
101
+ },
102
+ "field_5": {
103
+ "field_type": "body",
104
+ "fields": {
105
+ "name": "exclude_releases",
106
+ "type": "boolean",
107
+ "in": "body",
108
+ "description": "Indicates whether releases should be excluded from the migration (to reduce migration archive file size)."
109
+ }
110
+ },
111
+ "field_6": {
112
+ "field_type": "body",
113
+ "fields": {
114
+ "name": "exclude_owner_projects",
115
+ "type": "boolean",
116
+ "in": "body",
117
+ "description": "Indicates whether projects owned by the organization or users should be excluded. from the migration."
118
+ }
119
+ },
120
+ "field_7": {
121
+ "field_type": "body",
122
+ "fields": {
123
+ "name": "exclude",
124
+ "type": "array of strings",
125
+ "in": "body",
126
+ "description": ""
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "namespace_description": "Get an organization migration status",
132
+ "method": "get",
133
+ "endpoint": "/orgs/{org}/migrations/{migration_id}",
134
+ "field_0": {
135
+ "field_type": "header",
136
+ "fields": {
137
+ "name": "accept",
138
+ "type": "string",
139
+ "in": "header",
140
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
141
+ }
142
+ },
143
+ "field_1": {
144
+ "field_type": "path",
145
+ "fields": {
146
+ "name": "org",
147
+ "type": "string",
148
+ "in": "path",
149
+ "description": ""
150
+ }
151
+ },
152
+ "field_2": {
153
+ "field_type": "path",
154
+ "fields": {
155
+ "name": "migration_id",
156
+ "type": "integer",
157
+ "in": "path",
158
+ "description": "migration_id parameter"
159
+ }
160
+ },
161
+ "field_3": {
162
+ "field_type": "query",
163
+ "fields": {
164
+ "name": "exclude",
165
+ "type": "array",
166
+ "in": "query",
167
+ "description": "Exclude attributes from the API response to improve performance"
168
+ }
169
+ }
170
+ },
171
+ {
172
+ "namespace_description": "Download an organization migration archive",
173
+ "method": "get",
174
+ "endpoint": "/orgs/{org}/migrations/{migration_id}/archive",
175
+ "field_0": {
176
+ "field_type": "header",
177
+ "fields": {
178
+ "name": "accept",
179
+ "type": "string",
180
+ "in": "header",
181
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
182
+ }
183
+ },
184
+ "field_1": {
185
+ "field_type": "path",
186
+ "fields": {
187
+ "name": "org",
188
+ "type": "string",
189
+ "in": "path",
190
+ "description": ""
191
+ }
192
+ },
193
+ "field_2": {
194
+ "field_type": "path",
195
+ "fields": {
196
+ "name": "migration_id",
197
+ "type": "integer",
198
+ "in": "path",
199
+ "description": "migration_id parameter"
200
+ }
201
+ }
202
+ },
203
+ {
204
+ "namespace_description": "Delete an organization migration archive",
205
+ "method": "delete",
206
+ "endpoint": "/orgs/{org}/migrations/{migration_id}/archive",
207
+ "field_0": {
208
+ "field_type": "header",
209
+ "fields": {
210
+ "name": "accept",
211
+ "type": "string",
212
+ "in": "header",
213
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
214
+ }
215
+ },
216
+ "field_1": {
217
+ "field_type": "path",
218
+ "fields": {
219
+ "name": "org",
220
+ "type": "string",
221
+ "in": "path",
222
+ "description": ""
223
+ }
224
+ },
225
+ "field_2": {
226
+ "field_type": "path",
227
+ "fields": {
228
+ "name": "migration_id",
229
+ "type": "integer",
230
+ "in": "path",
231
+ "description": "migration_id parameter"
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "namespace_description": "Unlock an organization repository",
237
+ "method": "delete",
238
+ "endpoint": "/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",
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": "org",
252
+ "type": "string",
253
+ "in": "path",
254
+ "description": ""
255
+ }
256
+ },
257
+ "field_2": {
258
+ "field_type": "path",
259
+ "fields": {
260
+ "name": "migration_id",
261
+ "type": "integer",
262
+ "in": "path",
263
+ "description": "migration_id parameter"
264
+ }
265
+ },
266
+ "field_3": {
267
+ "field_type": "path",
268
+ "fields": {
269
+ "name": "repo_name",
270
+ "type": "string",
271
+ "in": "path",
272
+ "description": "repo_name parameter"
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "namespace_description": "List repositories in an organization migration",
278
+ "method": "get",
279
+ "endpoint": "/orgs/{org}/migrations/{migration_id}/repositories",
280
+ "field_0": {
281
+ "field_type": "header",
282
+ "fields": {
283
+ "name": "accept",
284
+ "type": "string",
285
+ "in": "header",
286
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
287
+ }
288
+ },
289
+ "field_1": {
290
+ "field_type": "path",
291
+ "fields": {
292
+ "name": "org",
293
+ "type": "string",
294
+ "in": "path",
295
+ "description": ""
296
+ }
297
+ },
298
+ "field_2": {
299
+ "field_type": "path",
300
+ "fields": {
301
+ "name": "migration_id",
302
+ "type": "integer",
303
+ "in": "path",
304
+ "description": "migration_id parameter"
305
+ }
306
+ },
307
+ "field_3": {
308
+ "field_type": "query",
309
+ "fields": {
310
+ "name": "per_page",
311
+ "type": "integer",
312
+ "in": "query",
313
+ "description": "Results per page (max 100)Default: 30"
314
+ }
315
+ },
316
+ "field_4": {
317
+ "field_type": "query",
318
+ "fields": {
319
+ "name": "page",
320
+ "type": "integer",
321
+ "in": "query",
322
+ "description": "Page number of the results to fetch.Default: 1"
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "namespace_description": "Get an import status",
328
+ "method": "get",
329
+ "endpoint": "/repos/{owner}/{repo}/import",
330
+ "field_0": {
331
+ "field_type": "header",
332
+ "fields": {
333
+ "name": "accept",
334
+ "type": "string",
335
+ "in": "header",
336
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
337
+ }
338
+ },
339
+ "field_1": {
340
+ "field_type": "path",
341
+ "fields": {
342
+ "name": "owner",
343
+ "type": "string",
344
+ "in": "path",
345
+ "description": ""
346
+ }
347
+ },
348
+ "field_2": {
349
+ "field_type": "path",
350
+ "fields": {
351
+ "name": "repo",
352
+ "type": "string",
353
+ "in": "path",
354
+ "description": ""
355
+ }
356
+ }
357
+ },
358
+ {
359
+ "namespace_description": "Start an import",
360
+ "method": "put",
361
+ "endpoint": "/repos/{owner}/{repo}/import",
362
+ "field_0": {
363
+ "field_type": "header",
364
+ "fields": {
365
+ "name": "accept",
366
+ "type": "string",
367
+ "in": "header",
368
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
369
+ }
370
+ },
371
+ "field_1": {
372
+ "field_type": "path",
373
+ "fields": {
374
+ "name": "owner",
375
+ "type": "string",
376
+ "in": "path",
377
+ "description": ""
378
+ }
379
+ },
380
+ "field_2": {
381
+ "field_type": "path",
382
+ "fields": {
383
+ "name": "repo",
384
+ "type": "string",
385
+ "in": "path",
386
+ "description": ""
387
+ }
388
+ },
389
+ "field_3": {
390
+ "field_type": "body",
391
+ "fields": {
392
+ "name": "vcs_url",
393
+ "type": "string",
394
+ "in": "body",
395
+ "description": "Required. The URL of the originating repository."
396
+ }
397
+ },
398
+ "field_4": {
399
+ "field_type": "body",
400
+ "fields": {
401
+ "name": "vcs",
402
+ "type": "string",
403
+ "in": "body",
404
+ "description": "The originating VCS type. Can be one of subversion, git, mercurial, or tfvc. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response."
405
+ }
406
+ },
407
+ "field_5": {
408
+ "field_type": "body",
409
+ "fields": {
410
+ "name": "vcs_username",
411
+ "type": "string",
412
+ "in": "body",
413
+ "description": "If authentication is required, the username to provide to vcs_url."
414
+ }
415
+ },
416
+ "field_6": {
417
+ "field_type": "body",
418
+ "fields": {
419
+ "name": "vcs_password",
420
+ "type": "string",
421
+ "in": "body",
422
+ "description": "If authentication is required, the password to provide to vcs_url."
423
+ }
424
+ },
425
+ "field_7": {
426
+ "field_type": "body",
427
+ "fields": {
428
+ "name": "tfvc_project",
429
+ "type": "string",
430
+ "in": "body",
431
+ "description": "For a tfvc import, the name of the project that is being imported."
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "namespace_description": "Update an import",
437
+ "method": "patch",
438
+ "endpoint": "/repos/{owner}/{repo}/import",
439
+ "field_0": {
440
+ "field_type": "header",
441
+ "fields": {
442
+ "name": "accept",
443
+ "type": "string",
444
+ "in": "header",
445
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
446
+ }
447
+ },
448
+ "field_1": {
449
+ "field_type": "path",
450
+ "fields": {
451
+ "name": "owner",
452
+ "type": "string",
453
+ "in": "path",
454
+ "description": ""
455
+ }
456
+ },
457
+ "field_2": {
458
+ "field_type": "path",
459
+ "fields": {
460
+ "name": "repo",
461
+ "type": "string",
462
+ "in": "path",
463
+ "description": ""
464
+ }
465
+ },
466
+ "field_3": {
467
+ "field_type": "body",
468
+ "fields": {
469
+ "name": "vcs_username",
470
+ "type": "string",
471
+ "in": "body",
472
+ "description": "The username to provide to the originating repository."
473
+ }
474
+ },
475
+ "field_4": {
476
+ "field_type": "body",
477
+ "fields": {
478
+ "name": "vcs_password",
479
+ "type": "string",
480
+ "in": "body",
481
+ "description": "The password to provide to the originating repository."
482
+ }
483
+ },
484
+ "field_5": {
485
+ "field_type": "body",
486
+ "fields": {
487
+ "name": "vcs",
488
+ "type": "string",
489
+ "in": "body",
490
+ "description": "The type of version control system you are migrating from."
491
+ }
492
+ },
493
+ "field_6": {
494
+ "field_type": "body",
495
+ "fields": {
496
+ "name": "tfvc_project",
497
+ "type": "string",
498
+ "in": "body",
499
+ "description": "For a tfvc import, the name of the project that is being imported."
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "namespace_description": "Cancel an import",
505
+ "method": "delete",
506
+ "endpoint": "/repos/{owner}/{repo}/import",
507
+ "field_0": {
508
+ "field_type": "header",
509
+ "fields": {
510
+ "name": "accept",
511
+ "type": "string",
512
+ "in": "header",
513
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
514
+ }
515
+ },
516
+ "field_1": {
517
+ "field_type": "path",
518
+ "fields": {
519
+ "name": "owner",
520
+ "type": "string",
521
+ "in": "path",
522
+ "description": ""
523
+ }
524
+ },
525
+ "field_2": {
526
+ "field_type": "path",
527
+ "fields": {
528
+ "name": "repo",
529
+ "type": "string",
530
+ "in": "path",
531
+ "description": ""
532
+ }
533
+ }
534
+ },
535
+ {
536
+ "namespace_description": "Get commit authors",
537
+ "method": "get",
538
+ "endpoint": "/repos/{owner}/{repo}/import/authors",
539
+ "field_0": {
540
+ "field_type": "header",
541
+ "fields": {
542
+ "name": "accept",
543
+ "type": "string",
544
+ "in": "header",
545
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
546
+ }
547
+ },
548
+ "field_1": {
549
+ "field_type": "path",
550
+ "fields": {
551
+ "name": "owner",
552
+ "type": "string",
553
+ "in": "path",
554
+ "description": ""
555
+ }
556
+ },
557
+ "field_2": {
558
+ "field_type": "path",
559
+ "fields": {
560
+ "name": "repo",
561
+ "type": "string",
562
+ "in": "path",
563
+ "description": ""
564
+ }
565
+ },
566
+ "field_3": {
567
+ "field_type": "query",
568
+ "fields": {
569
+ "name": "since",
570
+ "type": "integer",
571
+ "in": "query",
572
+ "description": "A user ID. Only return users with an ID greater than this ID."
573
+ }
574
+ }
575
+ },
576
+ {
577
+ "namespace_description": "Map a commit author",
578
+ "method": "patch",
579
+ "endpoint": "/repos/{owner}/{repo}/import/authors/{author_id}",
580
+ "field_0": {
581
+ "field_type": "header",
582
+ "fields": {
583
+ "name": "accept",
584
+ "type": "string",
585
+ "in": "header",
586
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
587
+ }
588
+ },
589
+ "field_1": {
590
+ "field_type": "path",
591
+ "fields": {
592
+ "name": "owner",
593
+ "type": "string",
594
+ "in": "path",
595
+ "description": ""
596
+ }
597
+ },
598
+ "field_2": {
599
+ "field_type": "path",
600
+ "fields": {
601
+ "name": "repo",
602
+ "type": "string",
603
+ "in": "path",
604
+ "description": ""
605
+ }
606
+ },
607
+ "field_3": {
608
+ "field_type": "path",
609
+ "fields": {
610
+ "name": "author_id",
611
+ "type": "integer",
612
+ "in": "path",
613
+ "description": ""
614
+ }
615
+ },
616
+ "field_4": {
617
+ "field_type": "body",
618
+ "fields": {
619
+ "name": "email",
620
+ "type": "string",
621
+ "in": "body",
622
+ "description": "The new Git author email."
623
+ }
624
+ },
625
+ "field_5": {
626
+ "field_type": "body",
627
+ "fields": {
628
+ "name": "name",
629
+ "type": "string",
630
+ "in": "body",
631
+ "description": "The new Git author name."
632
+ }
633
+ }
634
+ },
635
+ {
636
+ "namespace_description": "Get large files",
637
+ "method": "get",
638
+ "endpoint": "/repos/{owner}/{repo}/import/large_files",
639
+ "field_0": {
640
+ "field_type": "header",
641
+ "fields": {
642
+ "name": "accept",
643
+ "type": "string",
644
+ "in": "header",
645
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
646
+ }
647
+ },
648
+ "field_1": {
649
+ "field_type": "path",
650
+ "fields": {
651
+ "name": "owner",
652
+ "type": "string",
653
+ "in": "path",
654
+ "description": ""
655
+ }
656
+ },
657
+ "field_2": {
658
+ "field_type": "path",
659
+ "fields": {
660
+ "name": "repo",
661
+ "type": "string",
662
+ "in": "path",
663
+ "description": ""
664
+ }
665
+ }
666
+ },
667
+ {
668
+ "namespace_description": "Update Git LFS preference",
669
+ "method": "patch",
670
+ "endpoint": "/repos/{owner}/{repo}/import/lfs",
671
+ "field_0": {
672
+ "field_type": "header",
673
+ "fields": {
674
+ "name": "accept",
675
+ "type": "string",
676
+ "in": "header",
677
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
678
+ }
679
+ },
680
+ "field_1": {
681
+ "field_type": "path",
682
+ "fields": {
683
+ "name": "owner",
684
+ "type": "string",
685
+ "in": "path",
686
+ "description": ""
687
+ }
688
+ },
689
+ "field_2": {
690
+ "field_type": "path",
691
+ "fields": {
692
+ "name": "repo",
693
+ "type": "string",
694
+ "in": "path",
695
+ "description": ""
696
+ }
697
+ },
698
+ "field_3": {
699
+ "field_type": "body",
700
+ "fields": {
701
+ "name": "use_lfs",
702
+ "type": "string",
703
+ "in": "body",
704
+ "description": "Required. Can be one of opt_in (large files will be stored using Git LFS) or opt_out (large files will be removed during the import)."
705
+ }
706
+ }
707
+ },
708
+ {
709
+ "namespace_description": "List user migrations",
710
+ "method": "get",
711
+ "endpoint": "/user/migrations",
712
+ "field_0": {
713
+ "field_type": "header",
714
+ "fields": {
715
+ "name": "accept",
716
+ "type": "string",
717
+ "in": "header",
718
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
719
+ }
720
+ },
721
+ "field_1": {
722
+ "field_type": "query",
723
+ "fields": {
724
+ "name": "per_page",
725
+ "type": "integer",
726
+ "in": "query",
727
+ "description": "Results per page (max 100)Default: 30"
728
+ }
729
+ },
730
+ "field_2": {
731
+ "field_type": "query",
732
+ "fields": {
733
+ "name": "page",
734
+ "type": "integer",
735
+ "in": "query",
736
+ "description": "Page number of the results to fetch.Default: 1"
737
+ }
738
+ }
739
+ },
740
+ {
741
+ "namespace_description": "Start a user migration",
742
+ "method": "post",
743
+ "endpoint": "/user/migrations",
744
+ "field_0": {
745
+ "field_type": "header",
746
+ "fields": {
747
+ "name": "accept",
748
+ "type": "string",
749
+ "in": "header",
750
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
751
+ }
752
+ },
753
+ "field_1": {
754
+ "field_type": "body",
755
+ "fields": {
756
+ "name": "lock_repositories",
757
+ "type": "boolean",
758
+ "in": "body",
759
+ "description": "Lock the repositories being migrated at the start of the migration"
760
+ }
761
+ },
762
+ "field_2": {
763
+ "field_type": "body",
764
+ "fields": {
765
+ "name": "exclude_attachments",
766
+ "type": "boolean",
767
+ "in": "body",
768
+ "description": "Do not include attachments in the migration"
769
+ }
770
+ },
771
+ "field_3": {
772
+ "field_type": "body",
773
+ "fields": {
774
+ "name": "exclude_releases",
775
+ "type": "boolean",
776
+ "in": "body",
777
+ "description": "Do not include releases in the migration"
778
+ }
779
+ },
780
+ "field_4": {
781
+ "field_type": "body",
782
+ "fields": {
783
+ "name": "exclude_owner_projects",
784
+ "type": "boolean",
785
+ "in": "body",
786
+ "description": "Indicates whether projects owned by the organization or users should be excluded."
787
+ }
788
+ },
789
+ "field_5": {
790
+ "field_type": "body",
791
+ "fields": {
792
+ "name": "exclude",
793
+ "type": "array of strings",
794
+ "in": "body",
795
+ "description": "Exclude attributes from the API response to improve performance"
796
+ }
797
+ },
798
+ "field_6": {
799
+ "field_type": "body",
800
+ "fields": {
801
+ "name": "repositories",
802
+ "type": "array of strings",
803
+ "in": "body",
804
+ "description": "Required. "
805
+ }
806
+ }
807
+ },
808
+ {
809
+ "namespace_description": "Get a user migration status",
810
+ "method": "get",
811
+ "endpoint": "/user/migrations/{migration_id}",
812
+ "field_0": {
813
+ "field_type": "header",
814
+ "fields": {
815
+ "name": "accept",
816
+ "type": "string",
817
+ "in": "header",
818
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
819
+ }
820
+ },
821
+ "field_1": {
822
+ "field_type": "path",
823
+ "fields": {
824
+ "name": "migration_id",
825
+ "type": "integer",
826
+ "in": "path",
827
+ "description": "migration_id parameter"
828
+ }
829
+ },
830
+ "field_2": {
831
+ "field_type": "query",
832
+ "fields": {
833
+ "name": "exclude",
834
+ "type": "array",
835
+ "in": "query",
836
+ "description": ""
837
+ }
838
+ }
839
+ },
840
+ {
841
+ "namespace_description": "Download a user migration archive",
842
+ "method": "get",
843
+ "endpoint": "/user/migrations/{migration_id}/archive",
844
+ "field_0": {
845
+ "field_type": "header",
846
+ "fields": {
847
+ "name": "accept",
848
+ "type": "string",
849
+ "in": "header",
850
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
851
+ }
852
+ },
853
+ "field_1": {
854
+ "field_type": "path",
855
+ "fields": {
856
+ "name": "migration_id",
857
+ "type": "integer",
858
+ "in": "path",
859
+ "description": "migration_id parameter"
860
+ }
861
+ }
862
+ },
863
+ {
864
+ "namespace_description": "Delete a user migration archive",
865
+ "method": "delete",
866
+ "endpoint": "/user/migrations/{migration_id}/archive",
867
+ "field_0": {
868
+ "field_type": "header",
869
+ "fields": {
870
+ "name": "accept",
871
+ "type": "string",
872
+ "in": "header",
873
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
874
+ }
875
+ },
876
+ "field_1": {
877
+ "field_type": "path",
878
+ "fields": {
879
+ "name": "migration_id",
880
+ "type": "integer",
881
+ "in": "path",
882
+ "description": "migration_id parameter"
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "namespace_description": "Unlock a user repository",
888
+ "method": "delete",
889
+ "endpoint": "/user/migrations/{migration_id}/repos/{repo_name}/lock",
890
+ "field_0": {
891
+ "field_type": "header",
892
+ "fields": {
893
+ "name": "accept",
894
+ "type": "string",
895
+ "in": "header",
896
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
897
+ }
898
+ },
899
+ "field_1": {
900
+ "field_type": "path",
901
+ "fields": {
902
+ "name": "migration_id",
903
+ "type": "integer",
904
+ "in": "path",
905
+ "description": "migration_id parameter"
906
+ }
907
+ },
908
+ "field_2": {
909
+ "field_type": "path",
910
+ "fields": {
911
+ "name": "repo_name",
912
+ "type": "string",
913
+ "in": "path",
914
+ "description": "repo_name parameter"
915
+ }
916
+ }
917
+ },
918
+ {
919
+ "namespace_description": "List repositories for a user migration",
920
+ "method": "get",
921
+ "endpoint": "/user/migrations/{migration_id}/repositories",
922
+ "field_0": {
923
+ "field_type": "header",
924
+ "fields": {
925
+ "name": "accept",
926
+ "type": "string",
927
+ "in": "header",
928
+ "description": "Setting toapplication/vnd.github.v3+json is recommended."
929
+ }
930
+ },
931
+ "field_1": {
932
+ "field_type": "path",
933
+ "fields": {
934
+ "name": "migration_id",
935
+ "type": "integer",
936
+ "in": "path",
937
+ "description": "migration_id parameter"
938
+ }
939
+ },
940
+ "field_2": {
941
+ "field_type": "query",
942
+ "fields": {
943
+ "name": "per_page",
944
+ "type": "integer",
945
+ "in": "query",
946
+ "description": "Results per page (max 100)Default: 30"
947
+ }
948
+ },
949
+ "field_3": {
950
+ "field_type": "query",
951
+ "fields": {
952
+ "name": "page",
953
+ "type": "integer",
954
+ "in": "query",
955
+ "description": "Page number of the results to fetch.Default: 1"
956
+ }
957
+ }
958
+ }
959
+ ]
960
+ }