-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmap.js
1335 lines (1333 loc) · 35.7 KB
/
map.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
var accessLevelsCustomHelp;
accessLevelsCustomHelp = function() {
console.log(" access_levels");
console.log(" GUEST: 10");
console.log(" REPORTER: 20");
console.log(" DEVELOPER: 30");
console.log(" MASTER: 40");
return console.log(" OWNER: 50");
};
module.exports = {
"groups": {
options: {
per_page: {
param: "[per_page]",
alias: "e",
desc: "(optional) - The limit of list.",
type: true,
index: 0
},
page: {
param: "[page]",
alias: "p",
desc: "(optional) - The offset of list.",
type: true,
index: 0
}
},
desc: "Get retrive groups from gitlab.",
nameSpaces: "groups.all"
},
"showGroup": {
param: ["<group_id>"],
desc: "Get retrive group of a given group.",
nameSpaces: "groups.show"
},
"showGroupProjects": {
filter: true,
size: true,
param: ["<group_id>"],
desc: "Get retrive projects of a given group.",
nameSpaces: "groups.listProjects"
},
"showGroupMembers": {
filter: true,
size: true,
param: ["<group_id>"],
help: accessLevelsCustomHelp,
desc: "Get retrive memebers of a given group.",
nameSpaces: "groups.listMembers"
},
"addGroupMember": {
param: ["<group_id>", "<user_id>", "<access_level>"],
desc: "Adds a user to the list of group members.",
help: accessLevelsCustomHelp,
nameSpaces: "groups.addMember",
paramHooks: {
"2": "toNumber"
}
},
"createGroup": {
options: {
"name": {
param: "<name>",
alias: "n",
desc: "name (required) - The name of the group",
type: true,
index: 0
},
"path": {
param: "<path>",
alias: "p",
desc: "path (required) - The path of the group.",
type: true,
index: 0
},
"description": {
param: "[desc]",
alias: "d",
desc: "(optional) - The description of an issue.",
type: true,
index: 0
},
"visibility_level": {
param: "[visibility_level]",
alias: "v",
desc: "(optional) - The group's visibility. 0 for private, 10 for internal, 20 for public.",
type: true,
index: 0
}
},
desc: "Creates a new project group. Available only for users who can create groups.",
help: accessLevelsCustomHelp,
nameSpaces: "groups.create"
},
"transferProjectToGroup": {
param: ["<id>", "<project_id>"],
desc: "Transfer a project to the Group namespace. Available only for admin.",
nameSpaces: "groups.addProject"
},
"searchGroup": {
param: ["<nameOrPath>"],
desc: "Get all groups that match your string in their name or path.",
nameSpaces: "groups.search"
},
"issueNotes": {
filter: true,
size: true,
param: ["<projectId>", "<issue_id>"],
desc: "List project issue notes. iid seems not work, please try id or iid",
nameSpaces: "projects.issues.notes.all"
},
"issues": {
filter: true,
assigned_to_me: "assignee.id",
size: true,
options: {
state: {
param: "[state]",
alias: "s",
type: true,
index: 0,
desc: "(optional) - Return all issues or just those that are opened or closed"
},
labels: {
param: "[labels]",
alias: "l",
type: true,
index: 0,
desc: "(optional) - Comma-separated list of label names"
},
order_by: {
param: "[order_by]",
alias: "o",
type: true,
index: 0,
desc: "(optional) - Return requests ordered by created_at or updated_at fields. Default is created_at"
},
sort: {
param: "[sort]",
alias: "d",
type: true,
index: 0,
desc: "(optional) - Return requests sorted in asc or desc order. Default is desc"
},
per_page: {
param: "[per_page]",
alias: "e",
desc: "(optional) - The limit of list.",
type: true,
index: 0
},
page: {
param: "[page]",
alias: "p",
desc: "(optional) - The offset of list.",
type: true,
index: 0
}
},
desc: "Get all issues created by authenticated user. This function takes pagination parameters page and per_page to restrict the list of issues.",
nameSpaces: "issues.all"
},
"showIssue": {
param: ["<project_id>", "<issue_id>"],
desc: "Get retrive issue of a given project and a given issue.",
nameSpaces: "issues.show"
},
"createIssue": {
param: ["<project_id>"],
options: {
"title": {
param: "<title>",
alias: "t",
desc: "(required) - The title of an issue.",
type: true,
index: 1
},
"description": {
param: "[desc]",
alias: "d",
desc: "(optional) - The description of an issue.",
type: true,
index: 1
},
"assignee_id": {
param: "[assignee_id]",
alias: "a",
desc: "(optional) - The ID of a user to assign issue.",
type: true,
index: 1
},
"milestone_id": {
param: "[milestone_id]",
alias: "m",
desc: "(optional) - The ID of a milestone to assign issue.",
type: true,
index: 1
},
"labels": {
param: "[labels]",
alias: "l",
desc: "(optional) - Comma-separated label names for an issue.",
type: true,
index: 1
},
"due_date": {
param: "[due_date]",
alias: "dd",
desc: "(optional) - Date time string in the format YEAR-MONTH-DAY, e.g. 2016-03-11",
type: true,
index: 1
}
},
desc: "Creates a new project issue.If the operation is successful, 200 and the newly created issue is returned. If an error occurs, an error number and a message explaining the reason is returned.",
nameSpaces: "issues.create"
},
"editIssue": {
param: ["<project_id>", "<issue_id>"],
options: {
"title": {
param: "[title]",
alias: "t",
desc: "(optional) - The title of an issue.",
type: true,
index: 2
},
"description": {
param: "[desc]",
alias: "d",
desc: "(optional) - The description of an issue.",
type: true,
index: 2
},
"assignee_id": {
param: "[assignee_id]",
alias: "a",
desc: "(optional) - The ID of a user to assign issue.",
type: true,
index: 2
},
"milestone_id": {
param: "[milestone_id]",
alias: "m",
desc: "(optional) - The ID of a milestone to assign issue.",
type: true,
index: 2
},
"labels": {
param: "[labels]",
alias: "l",
desc: "(optional) - Comma-separated label names for an issue.",
type: true,
index: 2
},
"state_event": {
param: "[state_event]",
alias: "s",
desc: "(optional) - The state event of an issue ('close' to close issue and 'reopen' to reopen it).",
type: true,
index: 2
},
"due_date": {
param: "[due_date]",
alias: "dd",
desc: "(optional) - Date time string in the format YEAR-MONTH-DAY, e.g. 2016-03-11",
type: true,
index: 1
}
},
desc: "Updates an existing project issue. This function is also used to mark an issue as closed.If the operation is successful, 200 and the updated issue is returned. If an error occurs, an error number and a message explaining the reason is returned.",
nameSpaces: "issues.edit"
},
"createLabel": {
param: ["<project_id>"],
options: {
title: {
param: "<name>",
alias: "n",
type: true,
index: 1,
desc: "(required) - The name of the label."
},
key: {
param: "<color>",
alias: "c",
type: true,
index: 1,
desc: "(required) - The color of the label in 6-digit hex notation with leading # sign."
},
description: {
param: "[description]",
alias: "d",
type: true,
index: 1,
desc: "(optional) - The description of the label."
}
},
desc: "Creates a new label for the given repository with the given name and color.",
nameSpaces: "labels.create"
},
"createNote": {
param: ["<project_id>", "<issue_id>"],
options: {
body: {
param: "<body>",
alias: "b",
type: true,
index: 1,
desc: "(required) - The content of a note."
},
created_at: {
param: "[created_at]",
alias: "c",
type: true,
index: 1,
desc: " (optional) - Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z."
}
},
desc: "Creates a new note to a single project issue.",
nameSpaces: "notes.create"
},
"keys": {
filter: true,
size: true,
param: ["<project_id>"],
desc: "Get a list of a project's deploy keys by project id.",
nameSpaces: "projects.deploy_keys.listKeys"
},
"getKey": {
param: ["<project_id>", "<key_id>"],
desc: "Get a single key by project id and key id.",
nameSpaces: "projects.deploy_keys.getKey"
},
"addKey": {
param: ["<project_id>"],
options: {
title: {
param: "<title>",
alias: "t",
type: true,
index: 1,
desc: "(required) - New deploy key's title"
},
key: {
param: "<key>",
alias: "k",
type: true,
index: 1,
desc: "(required) - New deploy key"
}
},
desc: "Creates a new deploy key for a project. If deploy key already exists in another project - it will be joined to project but only if original one was is accessible by same user.",
nameSpaces: "projects.deploy_keys.addKey"
},
"hooks": {
param: ["<project_id>"],
desc: "Get retrive hooks of a given project.",
nameSpaces: "projects.hooks.list"
},
"showHook": {
param: ["<project_id>", "<hook_id>"],
desc: "Get retrive hook of a given project and a give hook.",
nameSpaces: "projects.hooks.show"
},
"addHook": {
param: ["<project_id>", "<url>"],
desc: "Add hook by a given porject id and url.",
nameSpaces: "projects.hooks.add"
},
"updateHook": {
param: ["<project_id>", "<hook_id>", "<url>"],
desc: "Update hook by a given porject id, a given hook id and url.",
nameSpaces: "projects.hooks.update"
},
"removeHook": {
param: ["<project_id>", "<hook_id>"],
desc: "Remove hook by a given porject id abd a given hook id.",
nameSpaces: "projects.hooks.remove"
},
"projectIssues": {
filter: true,
size: true,
assigned_to_me: "assignee.id",
created_by_me: "author.id",
param: ["<project_id>"],
options: {
state: {
param: "[state]",
alias: "s",
type: true,
index: 1,
desc: "(optional) - Return all issues or just those that are opened or closed"
},
labels: {
param: "[labels]",
alias: "l",
type: true,
index: 1,
desc: "(optional) - Comma-separated list of label names"
},
milestone: {
param: "[milestone]",
alias: "m",
type: true,
index: 1,
desc: "milestone (optional) - Milestone title"
},
order_by: {
param: "[order_by]",
alias: "o",
type: true,
index: 1,
desc: "(optional) - Return requests ordered by created_at or updated_at fields. Default is created_at"
},
sort: {
param: "[sort]",
alias: "d",
type: true,
index: 1,
desc: "(optional) - Return requests sorted in asc or desc order. Default is desc"
},
per_page: {
param: "[per_page]",
alias: "e",
desc: "(optional) - The limit of list.",
type: true,
index: 1
},
page: {
param: "[page]",
alias: "p",
desc: "(optional) - The offset of list.",
type: true,
index: 1
}
},
desc: "Get a list of project issues. This function accepts pagination parameters page and per_page to return the list of project issues.",
nameSpaces: "projects.issues.list"
},
"projectLabels": {
filter: true,
size: true,
param: ["<project_id>"],
desc: "Get all labels for a given project.",
nameSpaces: "projects.lables.all"
},
"members": {
filter: true,
param: ["<project_id>"],
desc: "Get a list of a project's team members.",
nameSpaces: "projects.members.list"
},
"showMember": {
param: ["<project_id>", "<user_id>"],
desc: "Gets a project team member.",
nameSpaces: "projects.members.show"
},
"addMember": {
param: ["<project_id>", "<user_id>", "[accessLevel]"],
help: accessLevelsCustomHelp,
desc: "Adds a user to a project team. This is an idempotent method and can be called multiple times with the same parameters. Adding team membership to a user that is already a member does not affect the existing membership.",
nameSpaces: "projects.members.add"
},
"updateMember": {
param: ["<project_id>", "<user_id>", "[accessLevel]"],
help: accessLevelsCustomHelp,
desc: "Updates a project team member to a specified access level.",
nameSpaces: "projects.members.update"
},
"removeMember": {
param: ["<project_id>", "<user_id>"],
desc: "Removes a user from a project team.",
nameSpaces: "projects.members.remove"
},
"mergeRequests": {
filter: true,
param: ["<project_id>"],
options: {
per_page: {
param: "[per_page]",
alias: "e",
desc: "(optional) - The limit of list.",
type: true,
index: 1
},
page: {
param: "[page]",
alias: "p",
desc: "(optional) - The offset of list.",
type: true,
index: 1
},
state: {
param: "[state]",
alias: "s",
type: true,
index: 1,
desc: "(optional) - Return all requests or just those that are merged, opened or closed"
},
order_by: {
param: "[order_by]",
alias: "o",
type: true,
index: 1,
desc: "(optional) - Return requests ordered by created_at or updated_at fields. Default is created_at"
},
sort: {
param: "[sort]",
alias: "d",
type: true,
index: 1,
desc: "(optional) - Return requests sorted in asc or desc order. Default is desc"
}
},
desc: "Get all merge requests for this project.",
nameSpaces: "projects.merge_requests.list"
},
"showMergeRequest": {
param: ["<project_id>", "<merge_request_id>"],
desc: "Shows information about a single merge request.",
nameSpaces: "projects.merge_requests.show"
},
"addMergeRequest": {
param: ["<project_id>", "<sourceBranch>", "<targetBranch>", "<assignee_id>", "<title>"],
desc: "Creates a new merge request.",
nameSpaces: "projects.merge_requests.add"
},
"updateMergeRequest": {
param: ["<project_id>", "<merge_request_id>"],
options: {
remove_source_branch: {
param: "[remove_source_branch]",
alias: "s",
type: true,
index: 2,
desc: "(optional) - Flag indicating if a merge request should remove the source branch when merging."
},
target_branch: {
param: "[target_branch]",
alias: "b",
type: true,
index: 2,
desc: "(optional) - The target branch."
},
assignee_id: {
param: "[assignee_id]",
alias: "a",
type: true,
index: 2,
desc: "(optional) - Assignee user ID."
},
title: {
param: "[title]",
alias: "t",
type: true,
index: 2,
desc: "(optional) - Title of MR."
},
description: {
param: "[desc]",
alias: "d",
type: true,
index: 2,
desc: "(optional) - Description of MR."
},
state_event: {
param: "[state_event]",
alias: "e",
type: true,
index: 2,
desc: "(optional) - New state (close/reopen)."
},
labels: {
param: "[lables]",
alias: "l",
type: true,
index: 2,
desc: "(optional) - Labels for MR as a comma-separated list."
},
milestone_id: {
param: "[milestone_id]",
alias: "m",
type: true,
index: 2,
desc: "(optional) - Milestone ID."
}
},
desc: "Updates an existing merge request. You can change branches, title, or even close the MR.",
nameSpaces: "projects.merge_requests.update"
},
"commentMergeRequest": {
param: ["<project_id>", "<merge_request_id>", "<note>"],
desc: "Adds a comment to a merge request.",
nameSpaces: "projects.merge_requests.comment"
},
"milestones": {
filter: true,
param: ["<project_id>"],
desc: "Returns a list of project milestones.",
nameSpaces: "projects.milestones.list"
},
"showMilestones": {
param: ["<project_id>", "<milestone_id>"],
desc: "Gets a single project milestone.",
nameSpaces: "projects.milestones.show"
},
"addMilestones": {
param: ["<project_id>", "<title>", "<description>", "<due_date>"],
desc: "Creates a new project milestone.",
nameSpaces: "projects.milestones.add"
},
"updateMilestones": {
param: ["<project_id>", "<milestone_id>", "<title>", "<description>", "<due_date>", "<state_event>"],
desc: "Updates an existing project milestone. The state event of the milestone (close|activate).",
nameSpaces: "projects.milestones.update"
},
"branches": {
filter: true,
param: ["<project_id>"],
desc: "Get a list of repository branches from a project, sorted by name alphabetically.",
nameSpaces: "projects.repository.listBranches"
},
"showBranch": {
param: ["<project_id>", "<branch_id>"],
desc: "Get a single project repository branch.",
nameSpaces: "projects.repository.showBranch"
},
"protectBranch": {
param: ["<project_id>", "<branch_id>"],
desc: "Protects a single project repository branch. This is an idempotent function, protecting an already protected repository branch still returns a 200 OK status code.",
nameSpaces: "projects.repository.protectBranch"
},
"unprotectBranch": {
param: ["<project_id>", "<branch_id>"],
desc: "Unprotects a single project repository branch. This is an idempotent function, unprotecting an already unprotected repository branch still returns a 200 OK status code.",
nameSpaces: "projects.repository.unprotectBranch"
},
"createBranch": {
options: {
project_id: {
param: "<project_id>",
alias: "i",
type: true,
index: 0,
desc: "(required) - The ID of a project."
},
branch_name: {
param: "<branch_name>",
alias: "b",
type: true,
index: 0,
desc: "(required) - The name of the branch."
},
ref: {
param: "<ref>",
alias: "r",
type: true,
index: 0,
desc: "(required) - Create branch from commit SHA or existing branch."
}
},
desc: "It return 200 if succeed or 400 if failed with error message explaining reason..",
nameSpaces: "projects.repository.createBranch"
},
"deleteBranch": {
param: ["<project_id>", "<branch_id>"],
desc: "It return 200 if succeed, 404 if the branch to be deleted does not exist or 400 for other reasons. In case of an error, an explaining message is provided.",
nameSpaces: "projects.repository.deleteBranch"
},
"tags": {
filter: true,
param: ["<project_id>"],
desc: "Get retrive list tags of a given project.",
nameSpaces: "projects.repository.listTags"
},
"commits": {
filter: true,
param: ["<project_id>"],
desc: "Get a list of repository commits in a project.",
nameSpaces: "projects.repository.listCommits"
},
"showCommit": {
param: ["<project_id>", "<commit_id>"],
desc: "Get retrive commit of a given project and a commit id.",
nameSpaces: "projects.repository.showCommit"
},
"diffCommit": {
param: ["<project_id>", "<sha>"],
desc: "Get the diff of a commit in a project.",
nameSpaces: "projects.repository.diffCommit"
},
"trees": {
filter: true,
param: ["<project_id>"],
options: {
path: {
param: "<path>",
alias: "p",
type: true,
index: 1,
desc: " (optional) - The path inside repository. Used to get contend of subdirectories."
},
ref_name: {
param: "<ref_name>",
alias: "r",
type: true,
index: 1,
desc: "(optional) - The name of a repository branch or tag or if not given the default branch."
}
},
desc: "Get a list of repository files and directories in a project.",
nameSpaces: "projects.repository.listTree"
},
"projects": {
filter: true,
options: {
per_page: {
param: "[per_page]",
alias: "e",
desc: "(optional) - The limit of list.",
type: true,
index: 0
},
page: {
param: "[page]",
alias: "p",
desc: "(optional) - The offset of list.",
type: true,
index: 0
},
archived: {
param: "[archived]",
alias: "a",
type: true,
index: 0,
desc: "(optional) - if passed, limit by archived status."
},
order_by: {
param: "[order_by]",
alias: "o",
type: true,
index: 0,
desc: "(optional) - Return requests ordered by id, name, path, created_at, updated_at or last_activity_at fields. Default is created_at."
},
sort: {
param: "[sort]",
alias: "s",
type: true,
index: 0,
desc: "(optional) - Return requests sorted in asc or desc order. Default is desc."
},
search: {
param: "[search]",
alias: "e",
type: true,
index: 0,
desc: "(optional) - Return list of authorized projects according to a search criteria."
}
},
desc: "Get a list of projects accessible by the authenticated user.",
nameSpaces: "projects.all"
},
"showProject": {
param: ["<project_id>"],
desc: "Get single project.",
nameSpaces: "projects.show"
},
"createProject": {
param: [],
options: {
name: {
param: "<name>",
desc: "(required) - new project name.",
type: true,
index: 0
},
path: {
param: "[path]",
alias: "p",
desc: "(optional) - custom repository name for new project. By default generated based on name.",
type: true,
index: 0
},
namespace_id: {
param: "[namespace_id]",
alias: "n",
desc: "(optional) - namespace for the new project (defaults to user).",
type: true,
index: 0
},
description: {
param: "[desc]",
alias: "d",
desc: "(optional) - namespace for the new project (defaults to user).",
type: true,
index: 0
},
issues_enabled: {
param: "[issues_enabled]",
alias: "i",
desc: "(optional)",
type: true,
index: 0
},
merge_requests_enabled: {
param: "[merge_requests_enabled]",
alias: "m",
desc: "(optional)",
type: true,
index: 0
},
wiki_enabled: {
param: "[wiki_enabled]",
alias: "w",
desc: "(optional)",
type: true,
index: 0
},
snippets_enabled: {
param: "[snippets_enabled]",
alias: "s",
desc: "(optional)",
type: true,
index: 0
},
public_builds: {
param: "[public_builds]",
alias: "p",
desc: "(optional) - if true same as setting visibility_level = 20.",
type: true,
index: 0
},
visibility_level: {
param: "[visibility_level]",
alias: "v",
desc: "(optional)",
type: true,
index: 0
},
import_url: {
param: "[import_url]",
alias: "u",
desc: "(optional)",
type: true,
index: 0
}
},
desc: "Creates a new project owned by the authenticated user.",
nameSpaces: "projects.create"
},
"createProjectForUser": {
param: [],
options: {
user_id: {
param: "<user_id>",
alias: "u",
desc: "(required) - user_id of owner.",
type: true,
index: 0
},
name: {
param: "<name>",
alias: "n",
desc: " (required) - new project name.",
type: true,
index: 0
},
description: {
param: "[desc]",
alias: "d",
desc: "(optional) - namespace for the new project (defaults to user).",
type: true,
index: 0
},
issues_enabled: {
param: "[issues_enabled]",
alias: "i",
desc: "(optional)",
type: true,
index: 0
},
merge_requests_enabled: {
param: "[merge_requests_enabled]",
alias: "m",
desc: "(optional)",
type: true,
index: 0
},
builds_enabled: {
param: "[builds_enabled]",
alias: "b",
desc: "(optional)",
type: true,
index: 1
},
wiki_enabled: {
param: "[wiki_enabled]",
alias: "w",
desc: "(optional)",
type: true,
index: 1
},
snippets_enabled: {
param: "[snippets_enabled]",
alias: "s",
desc: "(optional)",
type: true,
index: 1
},
container_registry_enabled: {
param: "[container_registry_enabled]",
alias: "c",
desc: "(optional)",
type: true,
index: 1
},
shared_runners_enabled: {
param: "[shared_runners_enabled]",
alias: "r",
desc: "(optional)",
type: true,
index: 1
},
"public": {
param: "[public]",
alias: "p",
desc: "(optional) - if true same as setting visibility_level = 20.",
type: true,
index: 1
},
visibility_level: {
param: "[visibility_level]",
alias: "v",
desc: "(optional)",
type: true,
index: 1
},
public_builds: {
param: "[public_builds]",
desc: "(optional)",
type: true,
index: 1
}
},
desc: "Creates a new project owned by the specified user. Available only for admins.",
nameSpaces: "projects.create_for_user"
},
"updateProject": {
param: ["projectId"],
options: {
name: {
param: "<name>",
desc: "(required) - new project name.",
type: true,
index: 1
},
path: {
param: "[path]",
alias: "p",
desc: "(optional) - custom repository name for new project. By default generated based on name.",
type: true,
index: 1
},
description: {
param: "[desc]",
alias: "d",
desc: "(optional) - namespace for the new project (defaults to user).",
type: true,
index: 1
},
default_branch: {
param: "[default_branch]",
alias: "b",
desc: "(optional)",
type: true,
index: 1
},
issues_enabled: {
param: "[issues_enabled]",
alias: "i",
desc: "(optional)",
type: true,
index: 1
},
merge_requests_enabled: {
param: "[merge_requests_enabled]",
alias: "m",
desc: "(optional)",
type: true,
index: 1
},
builds_enabled: {
param: "[builds_enabled]",
alias: "b",
desc: "(optional)",
type: true,
index: 1
},