@simplysf/simply-gitlab 0.12.0 → 0.13.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.
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "env-file": {
21
21
  "char": "e",
22
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
22
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
23
23
  "helpGroup": "CONNECTION",
24
24
  "name": "env-file",
25
25
  "summary": "Path to a .env file holding connection settings.",
@@ -45,6 +45,20 @@
45
45
  "multiple": false,
46
46
  "type": "option"
47
47
  },
48
+ "gitlab-token-kind": {
49
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
50
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
51
+ "helpGroup": "CONNECTION",
52
+ "name": "gitlab-token-kind",
53
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
54
+ "hasDynamicHelp": false,
55
+ "multiple": false,
56
+ "options": [
57
+ "personal",
58
+ "job"
59
+ ],
60
+ "type": "option"
61
+ },
48
62
  "limit": {
49
63
  "name": "limit",
50
64
  "summary": "Maximum number of results to return across all pages.",
@@ -140,7 +154,7 @@
140
154
  },
141
155
  "env-file": {
142
156
  "char": "e",
143
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
157
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
144
158
  "helpGroup": "CONNECTION",
145
159
  "name": "env-file",
146
160
  "summary": "Path to a .env file holding connection settings.",
@@ -166,6 +180,20 @@
166
180
  "multiple": false,
167
181
  "type": "option"
168
182
  },
183
+ "gitlab-token-kind": {
184
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
185
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
186
+ "helpGroup": "CONNECTION",
187
+ "name": "gitlab-token-kind",
188
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
189
+ "hasDynamicHelp": false,
190
+ "multiple": false,
191
+ "options": [
192
+ "personal",
193
+ "job"
194
+ ],
195
+ "type": "option"
196
+ },
169
197
  "project": {
170
198
  "char": "p",
171
199
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -245,7 +273,7 @@
245
273
  },
246
274
  "env-file": {
247
275
  "char": "e",
248
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
276
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
249
277
  "helpGroup": "CONNECTION",
250
278
  "name": "env-file",
251
279
  "summary": "Path to a .env file holding connection settings.",
@@ -271,6 +299,20 @@
271
299
  "multiple": false,
272
300
  "type": "option"
273
301
  },
302
+ "gitlab-token-kind": {
303
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
304
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
305
+ "helpGroup": "CONNECTION",
306
+ "name": "gitlab-token-kind",
307
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
308
+ "hasDynamicHelp": false,
309
+ "multiple": false,
310
+ "options": [
311
+ "personal",
312
+ "job"
313
+ ],
314
+ "type": "option"
315
+ },
274
316
  "project": {
275
317
  "char": "p",
276
318
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -325,6 +367,230 @@
325
367
  "list:branch:gitlab"
326
368
  ]
327
369
  },
370
+ "gitlab:branch:view": {
371
+ "aliases": [],
372
+ "args": {},
373
+ "description": "Looks the branch up by its exact name, unlike branch list --search, which matches any part of a name. A branch that does not exist fails with status 404. So does a project the token cannot see, so a 404 alone does not prove the branch is missing.",
374
+ "examples": [
375
+ "<%= config.bin %> <%= command.id %> --project group/project --branch main",
376
+ "<%= config.bin %> <%= command.id %> --project group/project --branch release/1.2 --json"
377
+ ],
378
+ "flags": {
379
+ "json": {
380
+ "description": "Format output as json.",
381
+ "helpGroup": "GLOBAL",
382
+ "name": "json",
383
+ "allowNo": false,
384
+ "type": "boolean"
385
+ },
386
+ "env-file": {
387
+ "char": "e",
388
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
389
+ "helpGroup": "CONNECTION",
390
+ "name": "env-file",
391
+ "summary": "Path to a .env file holding connection settings.",
392
+ "hasDynamicHelp": false,
393
+ "multiple": false,
394
+ "type": "option"
395
+ },
396
+ "gitlab-url": {
397
+ "env": "SIMPLY_GITLAB_URL",
398
+ "helpGroup": "CONNECTION",
399
+ "name": "gitlab-url",
400
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
401
+ "hasDynamicHelp": false,
402
+ "multiple": false,
403
+ "type": "option"
404
+ },
405
+ "gitlab-token": {
406
+ "env": "SIMPLY_GITLAB_TOKEN",
407
+ "helpGroup": "CONNECTION",
408
+ "name": "gitlab-token",
409
+ "summary": "Personal, project, or group access token.",
410
+ "hasDynamicHelp": false,
411
+ "multiple": false,
412
+ "type": "option"
413
+ },
414
+ "gitlab-token-kind": {
415
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
416
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
417
+ "helpGroup": "CONNECTION",
418
+ "name": "gitlab-token-kind",
419
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
420
+ "hasDynamicHelp": false,
421
+ "multiple": false,
422
+ "options": [
423
+ "personal",
424
+ "job"
425
+ ],
426
+ "type": "option"
427
+ },
428
+ "project": {
429
+ "char": "p",
430
+ "env": "SIMPLY_GITLAB_PROJECT",
431
+ "name": "project",
432
+ "required": true,
433
+ "summary": "Project id, or its full path such as group/subgroup/project.",
434
+ "hasDynamicHelp": false,
435
+ "multiple": false,
436
+ "type": "option"
437
+ },
438
+ "branch": {
439
+ "name": "branch",
440
+ "required": true,
441
+ "summary": "Exact branch name.",
442
+ "hasDynamicHelp": false,
443
+ "multiple": false,
444
+ "type": "option"
445
+ }
446
+ },
447
+ "hasDynamicHelp": false,
448
+ "hiddenAliases": [],
449
+ "id": "gitlab:branch:view",
450
+ "pluginAlias": "@simplysf/simply-gitlab",
451
+ "pluginName": "@simplysf/simply-gitlab",
452
+ "pluginType": "core",
453
+ "strict": true,
454
+ "summary": "Show one branch.",
455
+ "enableJsonFlag": true,
456
+ "isWrite": false,
457
+ "isESM": true,
458
+ "relativePath": [
459
+ "lib",
460
+ "commands",
461
+ "gitlab",
462
+ "branch",
463
+ "view.js"
464
+ ],
465
+ "aliasPermutations": [],
466
+ "permutations": [
467
+ "gitlab:branch:view",
468
+ "branch:gitlab:view",
469
+ "branch:view:gitlab",
470
+ "gitlab:view:branch",
471
+ "view:gitlab:branch",
472
+ "view:branch:gitlab"
473
+ ]
474
+ },
475
+ "gitlab:commit:compare": {
476
+ "aliases": [],
477
+ "args": {},
478
+ "description": "Lists the commits on --to that are not on --from, and counts the files they change. By default the comparison starts where the two refs diverge, which answers \"what would merging --to bring in\". --straight compares the two refs directly instead.\n\nGitLab limits how much one comparison returns and says so in the payload rather than failing; this command says so too. Use --json for the diffs themselves.",
479
+ "examples": [
480
+ "<%= config.bin %> <%= command.id %> --project group/project --from v1.2.0 --to main",
481
+ "<%= config.bin %> <%= command.id %> --project group/project --from main --to feature --straight --json"
482
+ ],
483
+ "flags": {
484
+ "json": {
485
+ "description": "Format output as json.",
486
+ "helpGroup": "GLOBAL",
487
+ "name": "json",
488
+ "allowNo": false,
489
+ "type": "boolean"
490
+ },
491
+ "env-file": {
492
+ "char": "e",
493
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
494
+ "helpGroup": "CONNECTION",
495
+ "name": "env-file",
496
+ "summary": "Path to a .env file holding connection settings.",
497
+ "hasDynamicHelp": false,
498
+ "multiple": false,
499
+ "type": "option"
500
+ },
501
+ "gitlab-url": {
502
+ "env": "SIMPLY_GITLAB_URL",
503
+ "helpGroup": "CONNECTION",
504
+ "name": "gitlab-url",
505
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
506
+ "hasDynamicHelp": false,
507
+ "multiple": false,
508
+ "type": "option"
509
+ },
510
+ "gitlab-token": {
511
+ "env": "SIMPLY_GITLAB_TOKEN",
512
+ "helpGroup": "CONNECTION",
513
+ "name": "gitlab-token",
514
+ "summary": "Personal, project, or group access token.",
515
+ "hasDynamicHelp": false,
516
+ "multiple": false,
517
+ "type": "option"
518
+ },
519
+ "gitlab-token-kind": {
520
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
521
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
522
+ "helpGroup": "CONNECTION",
523
+ "name": "gitlab-token-kind",
524
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
525
+ "hasDynamicHelp": false,
526
+ "multiple": false,
527
+ "options": [
528
+ "personal",
529
+ "job"
530
+ ],
531
+ "type": "option"
532
+ },
533
+ "project": {
534
+ "char": "p",
535
+ "env": "SIMPLY_GITLAB_PROJECT",
536
+ "name": "project",
537
+ "required": true,
538
+ "summary": "Project id, or its full path such as group/subgroup/project.",
539
+ "hasDynamicHelp": false,
540
+ "multiple": false,
541
+ "type": "option"
542
+ },
543
+ "from": {
544
+ "name": "from",
545
+ "required": true,
546
+ "summary": "Branch, tag, or SHA to compare from.",
547
+ "hasDynamicHelp": false,
548
+ "multiple": false,
549
+ "type": "option"
550
+ },
551
+ "to": {
552
+ "name": "to",
553
+ "required": true,
554
+ "summary": "Branch, tag, or SHA to compare to.",
555
+ "hasDynamicHelp": false,
556
+ "multiple": false,
557
+ "type": "option"
558
+ },
559
+ "straight": {
560
+ "name": "straight",
561
+ "summary": "Compare the two refs directly rather than from where they diverge.",
562
+ "allowNo": false,
563
+ "type": "boolean"
564
+ }
565
+ },
566
+ "hasDynamicHelp": false,
567
+ "hiddenAliases": [],
568
+ "id": "gitlab:commit:compare",
569
+ "pluginAlias": "@simplysf/simply-gitlab",
570
+ "pluginName": "@simplysf/simply-gitlab",
571
+ "pluginType": "core",
572
+ "strict": true,
573
+ "summary": "Compare two branches, tags, or commits.",
574
+ "enableJsonFlag": true,
575
+ "isWrite": false,
576
+ "isESM": true,
577
+ "relativePath": [
578
+ "lib",
579
+ "commands",
580
+ "gitlab",
581
+ "commit",
582
+ "compare.js"
583
+ ],
584
+ "aliasPermutations": [],
585
+ "permutations": [
586
+ "gitlab:commit:compare",
587
+ "commit:gitlab:compare",
588
+ "commit:compare:gitlab",
589
+ "gitlab:compare:commit",
590
+ "compare:gitlab:commit",
591
+ "compare:commit:gitlab"
592
+ ]
593
+ },
328
594
  "gitlab:commit:create": {
329
595
  "aliases": [],
330
596
  "args": {},
@@ -343,7 +609,7 @@
343
609
  },
344
610
  "env-file": {
345
611
  "char": "e",
346
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
612
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
347
613
  "helpGroup": "CONNECTION",
348
614
  "name": "env-file",
349
615
  "summary": "Path to a .env file holding connection settings.",
@@ -369,6 +635,20 @@
369
635
  "multiple": false,
370
636
  "type": "option"
371
637
  },
638
+ "gitlab-token-kind": {
639
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
640
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
641
+ "helpGroup": "CONNECTION",
642
+ "name": "gitlab-token-kind",
643
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
644
+ "hasDynamicHelp": false,
645
+ "multiple": false,
646
+ "options": [
647
+ "personal",
648
+ "job"
649
+ ],
650
+ "type": "option"
651
+ },
372
652
  "project": {
373
653
  "char": "p",
374
654
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -504,7 +784,7 @@
504
784
  },
505
785
  "env-file": {
506
786
  "char": "e",
507
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
787
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
508
788
  "helpGroup": "CONNECTION",
509
789
  "name": "env-file",
510
790
  "summary": "Path to a .env file holding connection settings.",
@@ -530,6 +810,20 @@
530
810
  "multiple": false,
531
811
  "type": "option"
532
812
  },
813
+ "gitlab-token-kind": {
814
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
815
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
816
+ "helpGroup": "CONNECTION",
817
+ "name": "gitlab-token-kind",
818
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
819
+ "hasDynamicHelp": false,
820
+ "multiple": false,
821
+ "options": [
822
+ "personal",
823
+ "job"
824
+ ],
825
+ "type": "option"
826
+ },
533
827
  "project": {
534
828
  "char": "p",
535
829
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -602,7 +896,7 @@
602
896
  },
603
897
  "env-file": {
604
898
  "char": "e",
605
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
899
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
606
900
  "helpGroup": "CONNECTION",
607
901
  "name": "env-file",
608
902
  "summary": "Path to a .env file holding connection settings.",
@@ -628,6 +922,20 @@
628
922
  "multiple": false,
629
923
  "type": "option"
630
924
  },
925
+ "gitlab-token-kind": {
926
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
927
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
928
+ "helpGroup": "CONNECTION",
929
+ "name": "gitlab-token-kind",
930
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
931
+ "hasDynamicHelp": false,
932
+ "multiple": false,
933
+ "options": [
934
+ "personal",
935
+ "job"
936
+ ],
937
+ "type": "option"
938
+ },
631
939
  "project": {
632
940
  "char": "p",
633
941
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -734,7 +1042,7 @@
734
1042
  },
735
1043
  "env-file": {
736
1044
  "char": "e",
737
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1045
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
738
1046
  "helpGroup": "CONNECTION",
739
1047
  "name": "env-file",
740
1048
  "summary": "Path to a .env file holding connection settings.",
@@ -760,6 +1068,20 @@
760
1068
  "multiple": false,
761
1069
  "type": "option"
762
1070
  },
1071
+ "gitlab-token-kind": {
1072
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1073
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1074
+ "helpGroup": "CONNECTION",
1075
+ "name": "gitlab-token-kind",
1076
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1077
+ "hasDynamicHelp": false,
1078
+ "multiple": false,
1079
+ "options": [
1080
+ "personal",
1081
+ "job"
1082
+ ],
1083
+ "type": "option"
1084
+ },
763
1085
  "project": {
764
1086
  "char": "p",
765
1087
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -826,7 +1148,7 @@
826
1148
  },
827
1149
  "env-file": {
828
1150
  "char": "e",
829
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1151
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
830
1152
  "helpGroup": "CONNECTION",
831
1153
  "name": "env-file",
832
1154
  "summary": "Path to a .env file holding connection settings.",
@@ -852,6 +1174,20 @@
852
1174
  "multiple": false,
853
1175
  "type": "option"
854
1176
  },
1177
+ "gitlab-token-kind": {
1178
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1179
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1180
+ "helpGroup": "CONNECTION",
1181
+ "name": "gitlab-token-kind",
1182
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1183
+ "hasDynamicHelp": false,
1184
+ "multiple": false,
1185
+ "options": [
1186
+ "personal",
1187
+ "job"
1188
+ ],
1189
+ "type": "option"
1190
+ },
855
1191
  "config": {
856
1192
  "char": "c",
857
1193
  "name": "config",
@@ -937,7 +1273,7 @@
937
1273
  },
938
1274
  "env-file": {
939
1275
  "char": "e",
940
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1276
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
941
1277
  "helpGroup": "CONNECTION",
942
1278
  "name": "env-file",
943
1279
  "summary": "Path to a .env file holding connection settings.",
@@ -963,6 +1299,20 @@
963
1299
  "multiple": false,
964
1300
  "type": "option"
965
1301
  },
1302
+ "gitlab-token-kind": {
1303
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1304
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1305
+ "helpGroup": "CONNECTION",
1306
+ "name": "gitlab-token-kind",
1307
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1308
+ "hasDynamicHelp": false,
1309
+ "multiple": false,
1310
+ "options": [
1311
+ "personal",
1312
+ "job"
1313
+ ],
1314
+ "type": "option"
1315
+ },
966
1316
  "project": {
967
1317
  "char": "p",
968
1318
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -1040,7 +1390,7 @@
1040
1390
  },
1041
1391
  "env-file": {
1042
1392
  "char": "e",
1043
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1393
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1044
1394
  "helpGroup": "CONNECTION",
1045
1395
  "name": "env-file",
1046
1396
  "summary": "Path to a .env file holding connection settings.",
@@ -1066,6 +1416,20 @@
1066
1416
  "multiple": false,
1067
1417
  "type": "option"
1068
1418
  },
1419
+ "gitlab-token-kind": {
1420
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1421
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1422
+ "helpGroup": "CONNECTION",
1423
+ "name": "gitlab-token-kind",
1424
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1425
+ "hasDynamicHelp": false,
1426
+ "multiple": false,
1427
+ "options": [
1428
+ "personal",
1429
+ "job"
1430
+ ],
1431
+ "type": "option"
1432
+ },
1069
1433
  "config": {
1070
1434
  "char": "c",
1071
1435
  "name": "config",
@@ -1151,7 +1515,7 @@
1151
1515
  },
1152
1516
  "env-file": {
1153
1517
  "char": "e",
1154
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1518
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1155
1519
  "helpGroup": "CONNECTION",
1156
1520
  "name": "env-file",
1157
1521
  "summary": "Path to a .env file holding connection settings.",
@@ -1177,6 +1541,20 @@
1177
1541
  "multiple": false,
1178
1542
  "type": "option"
1179
1543
  },
1544
+ "gitlab-token-kind": {
1545
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1546
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1547
+ "helpGroup": "CONNECTION",
1548
+ "name": "gitlab-token-kind",
1549
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1550
+ "hasDynamicHelp": false,
1551
+ "multiple": false,
1552
+ "options": [
1553
+ "personal",
1554
+ "job"
1555
+ ],
1556
+ "type": "option"
1557
+ },
1180
1558
  "project": {
1181
1559
  "char": "p",
1182
1560
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -1302,7 +1680,7 @@
1302
1680
  },
1303
1681
  "env-file": {
1304
1682
  "char": "e",
1305
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1683
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1306
1684
  "helpGroup": "CONNECTION",
1307
1685
  "name": "env-file",
1308
1686
  "summary": "Path to a .env file holding connection settings.",
@@ -1328,12 +1706,26 @@
1328
1706
  "multiple": false,
1329
1707
  "type": "option"
1330
1708
  },
1331
- "project": {
1332
- "char": "p",
1333
- "env": "SIMPLY_GITLAB_PROJECT",
1334
- "name": "project",
1335
- "required": true,
1336
- "summary": "Project id, or its full path such as group/subgroup/project.",
1709
+ "gitlab-token-kind": {
1710
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1711
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1712
+ "helpGroup": "CONNECTION",
1713
+ "name": "gitlab-token-kind",
1714
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1715
+ "hasDynamicHelp": false,
1716
+ "multiple": false,
1717
+ "options": [
1718
+ "personal",
1719
+ "job"
1720
+ ],
1721
+ "type": "option"
1722
+ },
1723
+ "project": {
1724
+ "char": "p",
1725
+ "env": "SIMPLY_GITLAB_PROJECT",
1726
+ "name": "project",
1727
+ "required": true,
1728
+ "summary": "Project id, or its full path such as group/subgroup/project.",
1337
1729
  "hasDynamicHelp": false,
1338
1730
  "multiple": false,
1339
1731
  "type": "option"
@@ -1460,7 +1852,7 @@
1460
1852
  },
1461
1853
  "env-file": {
1462
1854
  "char": "e",
1463
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1855
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1464
1856
  "helpGroup": "CONNECTION",
1465
1857
  "name": "env-file",
1466
1858
  "summary": "Path to a .env file holding connection settings.",
@@ -1486,6 +1878,20 @@
1486
1878
  "multiple": false,
1487
1879
  "type": "option"
1488
1880
  },
1881
+ "gitlab-token-kind": {
1882
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
1883
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
1884
+ "helpGroup": "CONNECTION",
1885
+ "name": "gitlab-token-kind",
1886
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1887
+ "hasDynamicHelp": false,
1888
+ "multiple": false,
1889
+ "options": [
1890
+ "personal",
1891
+ "job"
1892
+ ],
1893
+ "type": "option"
1894
+ },
1489
1895
  "project": {
1490
1896
  "char": "p",
1491
1897
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -1547,13 +1953,16 @@
1547
1953
  "view:file:gitlab"
1548
1954
  ]
1549
1955
  },
1550
- "gitlab:mr:create": {
1956
+ "gitlab:project:create": {
1551
1957
  "aliases": [],
1552
1958
  "args": {},
1553
- "description": "Both branches must already exist on the project. --draft prefixes the title with \"Draft: \", which is how GitLab itself marks a draft; there is no separate field for it.\n\nAssignees and reviewers are numeric user ids, not usernames — GitLab accepts only ids here. --body or --body-file supplies raw JSON for anything the flags do not cover, such as approval rules. Use --dry-run to see exactly what would be sent.",
1959
+ "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
1554
1960
  "examples": [
1555
- "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
1556
- "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
1961
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
1962
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
1963
+ "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
1964
+ "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
1965
+ "<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
1557
1966
  ],
1558
1967
  "flags": {
1559
1968
  "json": {
@@ -1565,7 +1974,7 @@
1565
1974
  },
1566
1975
  "env-file": {
1567
1976
  "char": "e",
1568
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
1977
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1569
1978
  "helpGroup": "CONNECTION",
1570
1979
  "name": "env-file",
1571
1980
  "summary": "Path to a .env file holding connection settings.",
@@ -1591,14 +2000,18 @@
1591
2000
  "multiple": false,
1592
2001
  "type": "option"
1593
2002
  },
1594
- "project": {
1595
- "char": "p",
1596
- "env": "SIMPLY_GITLAB_PROJECT",
1597
- "name": "project",
1598
- "required": true,
1599
- "summary": "Project id, or its full path such as group/subgroup/project.",
2003
+ "gitlab-token-kind": {
2004
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2005
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2006
+ "helpGroup": "CONNECTION",
2007
+ "name": "gitlab-token-kind",
2008
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1600
2009
  "hasDynamicHelp": false,
1601
2010
  "multiple": false,
2011
+ "options": [
2012
+ "personal",
2013
+ "job"
2014
+ ],
1602
2015
  "type": "option"
1603
2016
  },
1604
2017
  "dry-run": {
@@ -1607,76 +2020,90 @@
1607
2020
  "allowNo": false,
1608
2021
  "type": "boolean"
1609
2022
  },
1610
- "source-branch": {
1611
- "name": "source-branch",
1612
- "summary": "Branch holding the changes.",
2023
+ "name": {
2024
+ "name": "name",
2025
+ "summary": "Project name. The path is derived from it when --path is not given.",
1613
2026
  "hasDynamicHelp": false,
1614
2027
  "multiple": false,
1615
2028
  "type": "option"
1616
2029
  },
1617
- "target-branch": {
1618
- "name": "target-branch",
1619
- "summary": "Branch the changes are proposed for.",
2030
+ "path": {
2031
+ "name": "path",
2032
+ "summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
1620
2033
  "hasDynamicHelp": false,
1621
2034
  "multiple": false,
1622
2035
  "type": "option"
1623
2036
  },
1624
- "title": {
1625
- "name": "title",
1626
- "summary": "Merge request title.",
2037
+ "namespace": {
2038
+ "description": "Defaults to the namespace of the token owner.",
2039
+ "name": "namespace",
2040
+ "summary": "Group or user namespace to create the project in, by id or full path.",
1627
2041
  "hasDynamicHelp": false,
1628
2042
  "multiple": false,
1629
2043
  "type": "option"
1630
2044
  },
1631
2045
  "description": {
1632
2046
  "name": "description",
1633
- "summary": "Merge request description, as Markdown.",
2047
+ "summary": "Project description.",
1634
2048
  "hasDynamicHelp": false,
1635
2049
  "multiple": false,
1636
2050
  "type": "option"
1637
2051
  },
1638
- "draft": {
1639
- "name": "draft",
1640
- "summary": "Open it as a draft.",
1641
- "allowNo": false,
1642
- "type": "boolean"
2052
+ "visibility": {
2053
+ "name": "visibility",
2054
+ "summary": "Who can see the project.",
2055
+ "hasDynamicHelp": false,
2056
+ "multiple": false,
2057
+ "options": [
2058
+ "private",
2059
+ "internal",
2060
+ "public"
2061
+ ],
2062
+ "type": "option"
1643
2063
  },
1644
- "squash": {
1645
- "name": "squash",
1646
- "summary": "Squash the commits when it merges.",
1647
- "allowNo": false,
1648
- "type": "boolean"
2064
+ "default-branch": {
2065
+ "name": "default-branch",
2066
+ "summary": "Name of the default branch.",
2067
+ "hasDynamicHelp": false,
2068
+ "multiple": false,
2069
+ "type": "option"
1649
2070
  },
1650
- "remove-source-branch": {
1651
- "name": "remove-source-branch",
1652
- "summary": "Delete the source branch on merge.",
2071
+ "initialize-with-readme": {
2072
+ "name": "initialize-with-readme",
2073
+ "summary": "Create a first commit holding a README, so the repository is not empty.",
1653
2074
  "allowNo": false,
1654
2075
  "type": "boolean"
1655
2076
  },
1656
- "assignee-id": {
1657
- "name": "assignee-id",
1658
- "summary": "User id to assign. Repeatable.",
2077
+ "topics": {
2078
+ "name": "topics",
2079
+ "summary": "Comma-separated topics to label the project with.",
1659
2080
  "hasDynamicHelp": false,
1660
- "multiple": true,
2081
+ "multiple": false,
1661
2082
  "type": "option"
1662
2083
  },
1663
- "reviewer-id": {
1664
- "name": "reviewer-id",
1665
- "summary": "User id to request review from. Repeatable.",
2084
+ "template": {
2085
+ "name": "template",
2086
+ "summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
1666
2087
  "hasDynamicHelp": false,
1667
- "multiple": true,
2088
+ "multiple": false,
1668
2089
  "type": "option"
1669
2090
  },
1670
- "labels": {
1671
- "name": "labels",
1672
- "summary": "Comma-separated labels to apply.",
2091
+ "custom-template": {
2092
+ "name": "custom-template",
2093
+ "summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
2094
+ "allowNo": false,
2095
+ "type": "boolean"
2096
+ },
2097
+ "template-group": {
2098
+ "name": "template-group",
2099
+ "summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
1673
2100
  "hasDynamicHelp": false,
1674
2101
  "multiple": false,
1675
2102
  "type": "option"
1676
2103
  },
1677
- "milestone-id": {
1678
- "name": "milestone-id",
1679
- "summary": "Milestone id to attach.",
2104
+ "template-project": {
2105
+ "name": "template-project",
2106
+ "summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
1680
2107
  "hasDynamicHelp": false,
1681
2108
  "multiple": false,
1682
2109
  "type": "option"
@@ -1701,12 +2128,12 @@
1701
2128
  },
1702
2129
  "hasDynamicHelp": false,
1703
2130
  "hiddenAliases": [],
1704
- "id": "gitlab:mr:create",
2131
+ "id": "gitlab:project:create",
1705
2132
  "pluginAlias": "@simplysf/simply-gitlab",
1706
2133
  "pluginName": "@simplysf/simply-gitlab",
1707
2134
  "pluginType": "core",
1708
2135
  "strict": true,
1709
- "summary": "Open a merge request.",
2136
+ "summary": "Create a project, blank or from a template.",
1710
2137
  "enableJsonFlag": true,
1711
2138
  "isWrite": true,
1712
2139
  "isESM": true,
@@ -1714,27 +2141,27 @@
1714
2141
  "lib",
1715
2142
  "commands",
1716
2143
  "gitlab",
1717
- "mr",
2144
+ "project",
1718
2145
  "create.js"
1719
2146
  ],
1720
2147
  "aliasPermutations": [],
1721
2148
  "permutations": [
1722
- "gitlab:mr:create",
1723
- "mr:gitlab:create",
1724
- "mr:create:gitlab",
1725
- "gitlab:create:mr",
1726
- "create:gitlab:mr",
1727
- "create:mr:gitlab"
2149
+ "gitlab:project:create",
2150
+ "project:gitlab:create",
2151
+ "project:create:gitlab",
2152
+ "gitlab:create:project",
2153
+ "create:gitlab:project",
2154
+ "create:project:gitlab"
1728
2155
  ]
1729
2156
  },
1730
- "gitlab:mr:list": {
2157
+ "gitlab:project:list": {
1731
2158
  "aliases": [],
1732
2159
  "args": {},
1733
- "description": "Defaults to open merge requests, which is what a list is nearly always for; pass --state all to include closed and merged ones. The IID column is the number to pass to the other mr commands — it is per-project, and is not the \"id\" field in the JSON payload.",
2160
+ "description": "Without --search this lists every project the token can reach, newest activity first, which on a large instance is not a useful answer — narrow it with --search or --membership. Use --simple for a much smaller payload when you only need ids and paths.",
1734
2161
  "examples": [
1735
- "<%= config.bin %> <%= command.id %> --project group/project",
1736
- "<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
1737
- "<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
2162
+ "<%= config.bin %> <%= command.id %> --membership",
2163
+ "<%= config.bin %> <%= command.id %> --search platform --limit 10",
2164
+ "<%= config.bin %> <%= command.id %> --search platform --simple --json"
1738
2165
  ],
1739
2166
  "flags": {
1740
2167
  "json": {
@@ -1746,7 +2173,7 @@
1746
2173
  },
1747
2174
  "env-file": {
1748
2175
  "char": "e",
1749
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2176
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1750
2177
  "helpGroup": "CONNECTION",
1751
2178
  "name": "env-file",
1752
2179
  "summary": "Path to a .env file holding connection settings.",
@@ -1772,90 +2199,62 @@
1772
2199
  "multiple": false,
1773
2200
  "type": "option"
1774
2201
  },
1775
- "project": {
1776
- "char": "p",
1777
- "env": "SIMPLY_GITLAB_PROJECT",
1778
- "name": "project",
1779
- "required": true,
1780
- "summary": "Project id, or its full path such as group/subgroup/project.",
2202
+ "gitlab-token-kind": {
2203
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2204
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2205
+ "helpGroup": "CONNECTION",
2206
+ "name": "gitlab-token-kind",
2207
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
1781
2208
  "hasDynamicHelp": false,
1782
2209
  "multiple": false,
2210
+ "options": [
2211
+ "personal",
2212
+ "job"
2213
+ ],
1783
2214
  "type": "option"
1784
2215
  },
1785
2216
  "limit": {
1786
2217
  "name": "limit",
1787
- "summary": "Maximum number of merge requests to return across all pages.",
2218
+ "summary": "Maximum number of projects to return across all pages.",
1788
2219
  "default": 20,
1789
2220
  "hasDynamicHelp": false,
1790
2221
  "multiple": false,
1791
2222
  "type": "option"
1792
2223
  },
1793
- "state": {
1794
- "name": "state",
1795
- "summary": "Merge request state to return.",
1796
- "default": "opened",
1797
- "hasDynamicHelp": false,
1798
- "multiple": false,
1799
- "options": [
1800
- "opened",
1801
- "closed",
1802
- "locked",
1803
- "merged",
1804
- "all"
1805
- ],
1806
- "type": "option"
1807
- },
1808
- "source-branch": {
1809
- "name": "source-branch",
1810
- "summary": "Only merge requests from this source branch.",
1811
- "hasDynamicHelp": false,
1812
- "multiple": false,
1813
- "type": "option"
1814
- },
1815
- "target-branch": {
1816
- "name": "target-branch",
1817
- "summary": "Only merge requests into this target branch.",
1818
- "hasDynamicHelp": false,
1819
- "multiple": false,
1820
- "type": "option"
1821
- },
1822
- "author-username": {
1823
- "name": "author-username",
1824
- "summary": "Only merge requests opened by this username.",
2224
+ "search": {
2225
+ "name": "search",
2226
+ "summary": "Match against the project name and path.",
1825
2227
  "hasDynamicHelp": false,
1826
2228
  "multiple": false,
1827
2229
  "type": "option"
1828
2230
  },
1829
- "reviewer-username": {
1830
- "name": "reviewer-username",
1831
- "summary": "Only merge requests this username is reviewing.",
1832
- "hasDynamicHelp": false,
1833
- "multiple": false,
1834
- "type": "option"
2231
+ "membership": {
2232
+ "name": "membership",
2233
+ "summary": "Only projects you are a member of.",
2234
+ "allowNo": false,
2235
+ "type": "boolean"
1835
2236
  },
1836
- "labels": {
1837
- "name": "labels",
1838
- "summary": "Comma-separated labels every result must carry.",
1839
- "hasDynamicHelp": false,
1840
- "multiple": false,
1841
- "type": "option"
2237
+ "owned": {
2238
+ "name": "owned",
2239
+ "summary": "Only projects you own.",
2240
+ "allowNo": false,
2241
+ "type": "boolean"
1842
2242
  },
1843
- "search": {
1844
- "name": "search",
1845
- "summary": "Match against the title and description.",
1846
- "hasDynamicHelp": false,
1847
- "multiple": false,
1848
- "type": "option"
2243
+ "simple": {
2244
+ "name": "simple",
2245
+ "summary": "Return only the core fields, for a much smaller payload.",
2246
+ "allowNo": false,
2247
+ "type": "boolean"
1849
2248
  }
1850
2249
  },
1851
2250
  "hasDynamicHelp": false,
1852
2251
  "hiddenAliases": [],
1853
- "id": "gitlab:mr:list",
2252
+ "id": "gitlab:project:list",
1854
2253
  "pluginAlias": "@simplysf/simply-gitlab",
1855
2254
  "pluginName": "@simplysf/simply-gitlab",
1856
2255
  "pluginType": "core",
1857
2256
  "strict": true,
1858
- "summary": "List merge requests for a project.",
2257
+ "summary": "List projects you can see.",
1859
2258
  "enableJsonFlag": true,
1860
2259
  "isWrite": false,
1861
2260
  "isESM": true,
@@ -1863,28 +2262,26 @@
1863
2262
  "lib",
1864
2263
  "commands",
1865
2264
  "gitlab",
1866
- "mr",
2265
+ "project",
1867
2266
  "list.js"
1868
2267
  ],
1869
2268
  "aliasPermutations": [],
1870
2269
  "permutations": [
1871
- "gitlab:mr:list",
1872
- "mr:gitlab:list",
1873
- "mr:list:gitlab",
1874
- "gitlab:list:mr",
1875
- "list:gitlab:mr",
1876
- "list:mr:gitlab"
2270
+ "gitlab:project:list",
2271
+ "project:gitlab:list",
2272
+ "project:list:gitlab",
2273
+ "gitlab:list:project",
2274
+ "list:gitlab:project",
2275
+ "list:project:gitlab"
1877
2276
  ]
1878
2277
  },
1879
- "gitlab:mr:merge": {
2278
+ "gitlab:project:view": {
1880
2279
  "aliases": [],
1881
2280
  "args": {},
1882
- "description": "Merging cannot be undone by any other command, so this one refuses to send anything without --confirm. Without it, it prints the request it would send and exits 1.\n\nPass --sha with the head you reviewed (the \"Head\" line of mr view): GitLab then refuses if anything was pushed since. --auto-merge merges once checks pass, and on a project with merge trains it joins the train. --skip-merge-train uses GitLab's experimental \"merge immediately without restarting the merge train\", which merges changes the train has not tested against the merge requests queued ahead of it; it requires --sha.\n\nWhen GitLab refuses with a bare 405, the merge request is read back and the reason is named.",
2281
+ "description": "Accepts either the numeric id or the full path. Use --json for the complete, unmodified API payload, which carries far more than the summary below — permissions, statistics, and every feature toggle on the project.",
1883
2282
  "examples": [
1884
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
1885
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
1886
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
1887
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
2283
+ "<%= config.bin %> <%= command.id %> --project group/project",
2284
+ "<%= config.bin %> <%= command.id %> --project 1234 --json"
1888
2285
  ],
1889
2286
  "flags": {
1890
2287
  "json": {
@@ -1896,7 +2293,7 @@
1896
2293
  },
1897
2294
  "env-file": {
1898
2295
  "char": "e",
1899
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2296
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
1900
2297
  "helpGroup": "CONNECTION",
1901
2298
  "name": "env-file",
1902
2299
  "summary": "Path to a .env file holding connection settings.",
@@ -1922,6 +2319,20 @@
1922
2319
  "multiple": false,
1923
2320
  "type": "option"
1924
2321
  },
2322
+ "gitlab-token-kind": {
2323
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2324
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2325
+ "helpGroup": "CONNECTION",
2326
+ "name": "gitlab-token-kind",
2327
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2328
+ "hasDynamicHelp": false,
2329
+ "multiple": false,
2330
+ "options": [
2331
+ "personal",
2332
+ "job"
2333
+ ],
2334
+ "type": "option"
2335
+ },
1925
2336
  "project": {
1926
2337
  "char": "p",
1927
2338
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -1931,115 +2342,43 @@
1931
2342
  "hasDynamicHelp": false,
1932
2343
  "multiple": false,
1933
2344
  "type": "option"
1934
- },
1935
- "dry-run": {
1936
- "name": "dry-run",
1937
- "summary": "Print the request that would be sent and exit without sending it.",
1938
- "allowNo": false,
1939
- "type": "boolean"
1940
- },
1941
- "mr": {
1942
- "name": "mr",
1943
- "required": true,
1944
- "summary": "Merge request iid.",
1945
- "hasDynamicHelp": false,
1946
- "multiple": false,
1947
- "type": "option"
1948
- },
1949
- "sha": {
1950
- "name": "sha",
1951
- "summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
1952
- "hasDynamicHelp": false,
1953
- "multiple": false,
1954
- "type": "option"
1955
- },
1956
- "auto-merge": {
1957
- "exclusive": [
1958
- "skip-merge-train"
1959
- ],
1960
- "name": "auto-merge",
1961
- "summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
1962
- "allowNo": false,
1963
- "type": "boolean"
1964
- },
1965
- "skip-merge-train": {
1966
- "exclusive": [
1967
- "auto-merge"
1968
- ],
1969
- "name": "skip-merge-train",
1970
- "summary": "Merge now without restarting the merge train. Experimental in GitLab.",
1971
- "allowNo": false,
1972
- "type": "boolean"
1973
- },
1974
- "squash": {
1975
- "name": "squash",
1976
- "summary": "Squash the commits into one.",
1977
- "allowNo": true,
1978
- "type": "boolean"
1979
- },
1980
- "remove-source-branch": {
1981
- "name": "remove-source-branch",
1982
- "summary": "Delete the source branch after merging.",
1983
- "allowNo": true,
1984
- "type": "boolean"
1985
- },
1986
- "merge-commit-message": {
1987
- "name": "merge-commit-message",
1988
- "summary": "Custom merge commit message.",
1989
- "hasDynamicHelp": false,
1990
- "multiple": false,
1991
- "type": "option"
1992
- },
1993
- "squash-commit-message": {
1994
- "name": "squash-commit-message",
1995
- "summary": "Custom squash commit message.",
1996
- "hasDynamicHelp": false,
1997
- "multiple": false,
1998
- "type": "option"
1999
- },
2000
- "confirm": {
2001
- "name": "confirm",
2002
- "summary": "Send the merge. Without it, nothing is sent.",
2003
- "allowNo": false,
2004
- "type": "boolean"
2005
2345
  }
2006
2346
  },
2007
2347
  "hasDynamicHelp": false,
2008
2348
  "hiddenAliases": [],
2009
- "id": "gitlab:mr:merge",
2349
+ "id": "gitlab:project:view",
2010
2350
  "pluginAlias": "@simplysf/simply-gitlab",
2011
2351
  "pluginName": "@simplysf/simply-gitlab",
2012
2352
  "pluginType": "core",
2013
2353
  "strict": true,
2014
- "summary": "Merge a merge request, or add it to the merge train.",
2354
+ "summary": "Show one project.",
2015
2355
  "enableJsonFlag": true,
2016
- "isWrite": true,
2356
+ "isWrite": false,
2017
2357
  "isESM": true,
2018
2358
  "relativePath": [
2019
2359
  "lib",
2020
2360
  "commands",
2021
2361
  "gitlab",
2022
- "mr",
2023
- "merge.js"
2362
+ "project",
2363
+ "view.js"
2024
2364
  ],
2025
2365
  "aliasPermutations": [],
2026
2366
  "permutations": [
2027
- "gitlab:mr:merge",
2028
- "mr:gitlab:merge",
2029
- "mr:merge:gitlab",
2030
- "gitlab:merge:mr",
2031
- "merge:gitlab:mr",
2032
- "merge:mr:gitlab"
2367
+ "gitlab:project:view",
2368
+ "project:gitlab:view",
2369
+ "project:view:gitlab",
2370
+ "gitlab:view:project",
2371
+ "view:gitlab:project",
2372
+ "view:project:gitlab"
2033
2373
  ]
2034
2374
  },
2035
- "gitlab:mr:update": {
2375
+ "gitlab:release:create": {
2036
2376
  "aliases": [],
2037
2377
  "args": {},
2038
- "description": "Only the attributes you name are changed, with one exception worth knowing: --labels replaces the whole label set rather than adding to it.\n\nNaming nothing to change is refused rather than sent, because GitLab answers an empty update with a cheerful 200 and an unchanged merge request. --state close and --state reopen do what the buttons of those names do; neither merges anything.",
2378
+ "description": "Attaches a release to --tag. When the tag does not exist yet, pass --ref and GitLab creates the tag there first. When the tag exists, --ref is ignored, so this never moves a tag. A tag carries at most one release, and a second create for it is refused with status 409.\n\n--body or --body-file supplies raw JSON for anything the flags do not cover, such as asset links. Use --dry-run to see exactly what would be sent.",
2039
2379
  "examples": [
2040
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
2041
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
2042
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
2380
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0 --name 1.2.0 --description \"Bug fixes.\"",
2381
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.3.0 --ref main --dry-run"
2043
2382
  ],
2044
2383
  "flags": {
2045
2384
  "json": {
@@ -2051,7 +2390,7 @@
2051
2390
  },
2052
2391
  "env-file": {
2053
2392
  "char": "e",
2054
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2393
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2055
2394
  "helpGroup": "CONNECTION",
2056
2395
  "name": "env-file",
2057
2396
  "summary": "Path to a .env file holding connection settings.",
@@ -2077,6 +2416,20 @@
2077
2416
  "multiple": false,
2078
2417
  "type": "option"
2079
2418
  },
2419
+ "gitlab-token-kind": {
2420
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2421
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2422
+ "helpGroup": "CONNECTION",
2423
+ "name": "gitlab-token-kind",
2424
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2425
+ "hasDynamicHelp": false,
2426
+ "multiple": false,
2427
+ "options": [
2428
+ "personal",
2429
+ "job"
2430
+ ],
2431
+ "type": "option"
2432
+ },
2080
2433
  "project": {
2081
2434
  "char": "p",
2082
2435
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2093,82 +2446,44 @@
2093
2446
  "allowNo": false,
2094
2447
  "type": "boolean"
2095
2448
  },
2096
- "mr": {
2097
- "name": "mr",
2098
- "required": true,
2099
- "summary": "Merge request iid.",
2449
+ "tag": {
2450
+ "name": "tag",
2451
+ "summary": "Tag to attach the release to.",
2100
2452
  "hasDynamicHelp": false,
2101
2453
  "multiple": false,
2102
2454
  "type": "option"
2103
2455
  },
2104
- "title": {
2105
- "name": "title",
2106
- "summary": "New title.",
2456
+ "name": {
2457
+ "name": "name",
2458
+ "summary": "Release title. GitLab uses the tag name when it is omitted.",
2107
2459
  "hasDynamicHelp": false,
2108
2460
  "multiple": false,
2109
2461
  "type": "option"
2110
2462
  },
2111
2463
  "description": {
2112
2464
  "name": "description",
2113
- "summary": "New description, as Markdown.",
2114
- "hasDynamicHelp": false,
2115
- "multiple": false,
2116
- "type": "option"
2117
- },
2118
- "target-branch": {
2119
- "name": "target-branch",
2120
- "summary": "New target branch.",
2465
+ "summary": "Release notes, as Markdown.",
2121
2466
  "hasDynamicHelp": false,
2122
2467
  "multiple": false,
2123
2468
  "type": "option"
2124
2469
  },
2125
- "state": {
2126
- "name": "state",
2127
- "summary": "Close or reopen the merge request.",
2470
+ "ref": {
2471
+ "name": "ref",
2472
+ "summary": "Branch, tag, or SHA to create the tag from, when it does not exist yet.",
2128
2473
  "hasDynamicHelp": false,
2129
2474
  "multiple": false,
2130
- "options": [
2131
- "close",
2132
- "reopen"
2133
- ],
2134
- "type": "option"
2135
- },
2136
- "squash": {
2137
- "name": "squash",
2138
- "summary": "Squash the commits when it merges.",
2139
- "allowNo": true,
2140
- "type": "boolean"
2141
- },
2142
- "remove-source-branch": {
2143
- "name": "remove-source-branch",
2144
- "summary": "Delete the source branch on merge.",
2145
- "allowNo": true,
2146
- "type": "boolean"
2147
- },
2148
- "assignee-id": {
2149
- "name": "assignee-id",
2150
- "summary": "User id to assign, replacing the set. Repeatable.",
2151
- "hasDynamicHelp": false,
2152
- "multiple": true,
2153
2475
  "type": "option"
2154
2476
  },
2155
- "reviewer-id": {
2156
- "name": "reviewer-id",
2157
- "summary": "User id to review, replacing the set. Repeatable.",
2477
+ "milestone": {
2478
+ "name": "milestone",
2479
+ "summary": "Milestone title to associate. Repeatable.",
2158
2480
  "hasDynamicHelp": false,
2159
2481
  "multiple": true,
2160
2482
  "type": "option"
2161
2483
  },
2162
- "labels": {
2163
- "name": "labels",
2164
- "summary": "Comma-separated labels, replacing the existing set.",
2165
- "hasDynamicHelp": false,
2166
- "multiple": false,
2167
- "type": "option"
2168
- },
2169
- "milestone-id": {
2170
- "name": "milestone-id",
2171
- "summary": "Milestone id to attach.",
2484
+ "released-at": {
2485
+ "name": "released-at",
2486
+ "summary": "Release date, as ISO 8601. Defaults to now.",
2172
2487
  "hasDynamicHelp": false,
2173
2488
  "multiple": false,
2174
2489
  "type": "option"
@@ -2193,12 +2508,12 @@
2193
2508
  },
2194
2509
  "hasDynamicHelp": false,
2195
2510
  "hiddenAliases": [],
2196
- "id": "gitlab:mr:update",
2511
+ "id": "gitlab:release:create",
2197
2512
  "pluginAlias": "@simplysf/simply-gitlab",
2198
2513
  "pluginName": "@simplysf/simply-gitlab",
2199
2514
  "pluginType": "core",
2200
2515
  "strict": true,
2201
- "summary": "Change an existing merge request.",
2516
+ "summary": "Create a release.",
2202
2517
  "enableJsonFlag": true,
2203
2518
  "isWrite": true,
2204
2519
  "isESM": true,
@@ -2206,26 +2521,26 @@
2206
2521
  "lib",
2207
2522
  "commands",
2208
2523
  "gitlab",
2209
- "mr",
2210
- "update.js"
2524
+ "release",
2525
+ "create.js"
2211
2526
  ],
2212
2527
  "aliasPermutations": [],
2213
2528
  "permutations": [
2214
- "gitlab:mr:update",
2215
- "mr:gitlab:update",
2216
- "mr:update:gitlab",
2217
- "gitlab:update:mr",
2218
- "update:gitlab:mr",
2219
- "update:mr:gitlab"
2529
+ "gitlab:release:create",
2530
+ "release:gitlab:create",
2531
+ "release:create:gitlab",
2532
+ "gitlab:create:release",
2533
+ "create:gitlab:release",
2534
+ "create:release:gitlab"
2220
2535
  ]
2221
2536
  },
2222
- "gitlab:mr:view": {
2537
+ "gitlab:release:list": {
2223
2538
  "aliases": [],
2224
2539
  "args": {},
2225
- "description": "Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.",
2540
+ "description": "Releases are tags with notes and assets attached, so a project can have many tags and no releases at all. Use --json for the release notes, asset links, and the commit each release points at.",
2226
2541
  "examples": [
2227
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42",
2228
- "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json"
2542
+ "<%= config.bin %> <%= command.id %> --project group/project",
2543
+ "<%= config.bin %> <%= command.id %> --project group/project --limit 5 --json"
2229
2544
  ],
2230
2545
  "flags": {
2231
2546
  "json": {
@@ -2237,7 +2552,7 @@
2237
2552
  },
2238
2553
  "env-file": {
2239
2554
  "char": "e",
2240
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2555
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2241
2556
  "helpGroup": "CONNECTION",
2242
2557
  "name": "env-file",
2243
2558
  "summary": "Path to a .env file holding connection settings.",
@@ -2263,6 +2578,20 @@
2263
2578
  "multiple": false,
2264
2579
  "type": "option"
2265
2580
  },
2581
+ "gitlab-token-kind": {
2582
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2583
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2584
+ "helpGroup": "CONNECTION",
2585
+ "name": "gitlab-token-kind",
2586
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2587
+ "hasDynamicHelp": false,
2588
+ "multiple": false,
2589
+ "options": [
2590
+ "personal",
2591
+ "job"
2592
+ ],
2593
+ "type": "option"
2594
+ },
2266
2595
  "project": {
2267
2596
  "char": "p",
2268
2597
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2273,10 +2602,10 @@
2273
2602
  "multiple": false,
2274
2603
  "type": "option"
2275
2604
  },
2276
- "mr": {
2277
- "name": "mr",
2278
- "required": true,
2279
- "summary": "Merge request iid.",
2605
+ "limit": {
2606
+ "name": "limit",
2607
+ "summary": "Maximum number of releases to return across all pages.",
2608
+ "default": 20,
2280
2609
  "hasDynamicHelp": false,
2281
2610
  "multiple": false,
2282
2611
  "type": "option"
@@ -2284,12 +2613,12 @@
2284
2613
  },
2285
2614
  "hasDynamicHelp": false,
2286
2615
  "hiddenAliases": [],
2287
- "id": "gitlab:mr:view",
2616
+ "id": "gitlab:release:list",
2288
2617
  "pluginAlias": "@simplysf/simply-gitlab",
2289
2618
  "pluginName": "@simplysf/simply-gitlab",
2290
2619
  "pluginType": "core",
2291
2620
  "strict": true,
2292
- "summary": "Show one merge request.",
2621
+ "summary": "List releases for a project.",
2293
2622
  "enableJsonFlag": true,
2294
2623
  "isWrite": false,
2295
2624
  "isESM": true,
@@ -2297,29 +2626,26 @@
2297
2626
  "lib",
2298
2627
  "commands",
2299
2628
  "gitlab",
2300
- "mr",
2301
- "view.js"
2629
+ "release",
2630
+ "list.js"
2302
2631
  ],
2303
2632
  "aliasPermutations": [],
2304
2633
  "permutations": [
2305
- "gitlab:mr:view",
2306
- "mr:gitlab:view",
2307
- "mr:view:gitlab",
2308
- "gitlab:view:mr",
2309
- "view:gitlab:mr",
2310
- "view:mr:gitlab"
2634
+ "gitlab:release:list",
2635
+ "release:gitlab:list",
2636
+ "release:list:gitlab",
2637
+ "gitlab:list:release",
2638
+ "list:gitlab:release",
2639
+ "list:release:gitlab"
2311
2640
  ]
2312
2641
  },
2313
- "gitlab:project:create": {
2642
+ "gitlab:release:view": {
2314
2643
  "aliases": [],
2315
2644
  "args": {},
2316
- "description": "Creates the project in --namespace, or in the namespace of the token owner when none is given. Give it --name or --path; GitLab derives whichever one is missing.\n\n--template names one of the built-in templates GitLab ships, such as express or rails. To create from a custom template instead, add --custom-template for one the instance administrator registered, --template-group for one in a group, or use --template-project to name the template project itself by id or path — which GitLab prefers, because a name can be ambiguous. Add --template-group to --template-project when the template belongs to a group rather than the instance. Custom templates need a Premium or Ultimate instance.\n\nA template is applied asynchronously: this command returns as soon as the project record exists, with an import status of \"scheduled\", and the files arrive a few seconds later. Check \"project view\" until its import_status reads \"finished\" before writing to the repository. --dry-run prints the exact request body; a namespace or template given as a path is still looked up, so the printed ids are the ones that would be sent.",
2645
+ "description": "Looks the release up by its tag. A tag that has no release fails with status 404, as does a project the token cannot see. Use --json for asset links and milestones.",
2317
2646
  "examples": [
2318
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps",
2319
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template express --visibility internal",
2320
- "<%= config.bin %> <%= command.id %> --name new-service --namespace platform/apps --template service-skeleton --template-group platform/templates",
2321
- "<%= config.bin %> <%= command.id %> --path new-service --template-project platform/templates/service-skeleton --dry-run",
2322
- "<%= config.bin %> <%= command.id %> --name new-service --template-project platform/templates/service-skeleton --template-group platform/templates"
2647
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0",
2648
+ "<%= config.bin %> <%= command.id %> --project group/project --tag v1.2.0 --json"
2323
2649
  ],
2324
2650
  "flags": {
2325
2651
  "json": {
@@ -2331,7 +2657,7 @@
2331
2657
  },
2332
2658
  "env-file": {
2333
2659
  "char": "e",
2334
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2660
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2335
2661
  "helpGroup": "CONNECTION",
2336
2662
  "name": "env-file",
2337
2663
  "summary": "Path to a .env file holding connection settings.",
@@ -2357,96 +2683,211 @@
2357
2683
  "multiple": false,
2358
2684
  "type": "option"
2359
2685
  },
2360
- "dry-run": {
2361
- "name": "dry-run",
2362
- "summary": "Print the request that would be sent and exit without sending it.",
2363
- "allowNo": false,
2364
- "type": "boolean"
2365
- },
2366
- "name": {
2367
- "name": "name",
2368
- "summary": "Project name. The path is derived from it when --path is not given.",
2369
- "hasDynamicHelp": false,
2370
- "multiple": false,
2371
- "type": "option"
2372
- },
2373
- "path": {
2374
- "name": "path",
2375
- "summary": "Repository path, the URL slug. The name is derived from it when --name is not given.",
2686
+ "gitlab-token-kind": {
2687
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2688
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2689
+ "helpGroup": "CONNECTION",
2690
+ "name": "gitlab-token-kind",
2691
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2376
2692
  "hasDynamicHelp": false,
2377
2693
  "multiple": false,
2694
+ "options": [
2695
+ "personal",
2696
+ "job"
2697
+ ],
2378
2698
  "type": "option"
2379
2699
  },
2380
- "namespace": {
2381
- "description": "Defaults to the namespace of the token owner.",
2382
- "name": "namespace",
2383
- "summary": "Group or user namespace to create the project in, by id or full path.",
2700
+ "project": {
2701
+ "char": "p",
2702
+ "env": "SIMPLY_GITLAB_PROJECT",
2703
+ "name": "project",
2704
+ "required": true,
2705
+ "summary": "Project id, or its full path such as group/subgroup/project.",
2384
2706
  "hasDynamicHelp": false,
2385
2707
  "multiple": false,
2386
2708
  "type": "option"
2387
2709
  },
2388
- "description": {
2389
- "name": "description",
2390
- "summary": "Project description.",
2710
+ "tag": {
2711
+ "name": "tag",
2712
+ "required": true,
2713
+ "summary": "Tag the release is attached to.",
2714
+ "hasDynamicHelp": false,
2715
+ "multiple": false,
2716
+ "type": "option"
2717
+ }
2718
+ },
2719
+ "hasDynamicHelp": false,
2720
+ "hiddenAliases": [],
2721
+ "id": "gitlab:release:view",
2722
+ "pluginAlias": "@simplysf/simply-gitlab",
2723
+ "pluginName": "@simplysf/simply-gitlab",
2724
+ "pluginType": "core",
2725
+ "strict": true,
2726
+ "summary": "Show one release.",
2727
+ "enableJsonFlag": true,
2728
+ "isWrite": false,
2729
+ "isESM": true,
2730
+ "relativePath": [
2731
+ "lib",
2732
+ "commands",
2733
+ "gitlab",
2734
+ "release",
2735
+ "view.js"
2736
+ ],
2737
+ "aliasPermutations": [],
2738
+ "permutations": [
2739
+ "gitlab:release:view",
2740
+ "release:gitlab:view",
2741
+ "release:view:gitlab",
2742
+ "gitlab:view:release",
2743
+ "view:gitlab:release",
2744
+ "view:release:gitlab"
2745
+ ]
2746
+ },
2747
+ "gitlab:mr:create": {
2748
+ "aliases": [],
2749
+ "args": {},
2750
+ "description": "Both branches must already exist on the project. --draft prefixes the title with \"Draft: \", which is how GitLab itself marks a draft; there is no separate field for it.\n\nAssignees and reviewers are numeric user ids, not usernames — GitLab accepts only ids here. --body or --body-file supplies raw JSON for anything the flags do not cover, such as approval rules. Use --dry-run to see exactly what would be sent.",
2751
+ "examples": [
2752
+ "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title \"feat: the thing\"",
2753
+ "<%= config.bin %> <%= command.id %> --project group/project --source-branch feature --target-branch main --title wip --draft --squash"
2754
+ ],
2755
+ "flags": {
2756
+ "json": {
2757
+ "description": "Format output as json.",
2758
+ "helpGroup": "GLOBAL",
2759
+ "name": "json",
2760
+ "allowNo": false,
2761
+ "type": "boolean"
2762
+ },
2763
+ "env-file": {
2764
+ "char": "e",
2765
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2766
+ "helpGroup": "CONNECTION",
2767
+ "name": "env-file",
2768
+ "summary": "Path to a .env file holding connection settings.",
2391
2769
  "hasDynamicHelp": false,
2392
2770
  "multiple": false,
2393
2771
  "type": "option"
2394
2772
  },
2395
- "visibility": {
2396
- "name": "visibility",
2397
- "summary": "Who can see the project.",
2773
+ "gitlab-url": {
2774
+ "env": "SIMPLY_GITLAB_URL",
2775
+ "helpGroup": "CONNECTION",
2776
+ "name": "gitlab-url",
2777
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
2778
+ "hasDynamicHelp": false,
2779
+ "multiple": false,
2780
+ "type": "option"
2781
+ },
2782
+ "gitlab-token": {
2783
+ "env": "SIMPLY_GITLAB_TOKEN",
2784
+ "helpGroup": "CONNECTION",
2785
+ "name": "gitlab-token",
2786
+ "summary": "Personal, project, or group access token.",
2787
+ "hasDynamicHelp": false,
2788
+ "multiple": false,
2789
+ "type": "option"
2790
+ },
2791
+ "gitlab-token-kind": {
2792
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2793
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2794
+ "helpGroup": "CONNECTION",
2795
+ "name": "gitlab-token-kind",
2796
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2398
2797
  "hasDynamicHelp": false,
2399
2798
  "multiple": false,
2400
2799
  "options": [
2401
- "private",
2402
- "internal",
2403
- "public"
2800
+ "personal",
2801
+ "job"
2404
2802
  ],
2405
2803
  "type": "option"
2406
2804
  },
2407
- "default-branch": {
2408
- "name": "default-branch",
2409
- "summary": "Name of the default branch.",
2805
+ "project": {
2806
+ "char": "p",
2807
+ "env": "SIMPLY_GITLAB_PROJECT",
2808
+ "name": "project",
2809
+ "required": true,
2810
+ "summary": "Project id, or its full path such as group/subgroup/project.",
2410
2811
  "hasDynamicHelp": false,
2411
2812
  "multiple": false,
2412
2813
  "type": "option"
2413
2814
  },
2414
- "initialize-with-readme": {
2415
- "name": "initialize-with-readme",
2416
- "summary": "Create a first commit holding a README, so the repository is not empty.",
2815
+ "dry-run": {
2816
+ "name": "dry-run",
2817
+ "summary": "Print the request that would be sent and exit without sending it.",
2417
2818
  "allowNo": false,
2418
2819
  "type": "boolean"
2419
2820
  },
2420
- "topics": {
2421
- "name": "topics",
2422
- "summary": "Comma-separated topics to label the project with.",
2821
+ "source-branch": {
2822
+ "name": "source-branch",
2823
+ "summary": "Branch holding the changes.",
2423
2824
  "hasDynamicHelp": false,
2424
2825
  "multiple": false,
2425
2826
  "type": "option"
2426
2827
  },
2427
- "template": {
2428
- "name": "template",
2429
- "summary": "Template to create from: a built-in name, or with --custom-template or --template-group a custom one.",
2828
+ "target-branch": {
2829
+ "name": "target-branch",
2830
+ "summary": "Branch the changes are proposed for.",
2430
2831
  "hasDynamicHelp": false,
2431
2832
  "multiple": false,
2432
2833
  "type": "option"
2433
2834
  },
2434
- "custom-template": {
2435
- "name": "custom-template",
2436
- "summary": "Look --template up among the instance's custom project templates rather than the built-in ones.",
2835
+ "title": {
2836
+ "name": "title",
2837
+ "summary": "Merge request title.",
2838
+ "hasDynamicHelp": false,
2839
+ "multiple": false,
2840
+ "type": "option"
2841
+ },
2842
+ "description": {
2843
+ "name": "description",
2844
+ "summary": "Merge request description, as Markdown.",
2845
+ "hasDynamicHelp": false,
2846
+ "multiple": false,
2847
+ "type": "option"
2848
+ },
2849
+ "draft": {
2850
+ "name": "draft",
2851
+ "summary": "Open it as a draft.",
2437
2852
  "allowNo": false,
2438
2853
  "type": "boolean"
2439
2854
  },
2440
- "template-group": {
2441
- "name": "template-group",
2442
- "summary": "Group whose custom project templates --template or --template-project names, by id or full path.",
2855
+ "squash": {
2856
+ "name": "squash",
2857
+ "summary": "Squash the commits when it merges.",
2858
+ "allowNo": false,
2859
+ "type": "boolean"
2860
+ },
2861
+ "remove-source-branch": {
2862
+ "name": "remove-source-branch",
2863
+ "summary": "Delete the source branch on merge.",
2864
+ "allowNo": false,
2865
+ "type": "boolean"
2866
+ },
2867
+ "assignee-id": {
2868
+ "name": "assignee-id",
2869
+ "summary": "User id to assign. Repeatable.",
2870
+ "hasDynamicHelp": false,
2871
+ "multiple": true,
2872
+ "type": "option"
2873
+ },
2874
+ "reviewer-id": {
2875
+ "name": "reviewer-id",
2876
+ "summary": "User id to request review from. Repeatable.",
2877
+ "hasDynamicHelp": false,
2878
+ "multiple": true,
2879
+ "type": "option"
2880
+ },
2881
+ "labels": {
2882
+ "name": "labels",
2883
+ "summary": "Comma-separated labels to apply.",
2443
2884
  "hasDynamicHelp": false,
2444
2885
  "multiple": false,
2445
2886
  "type": "option"
2446
2887
  },
2447
- "template-project": {
2448
- "name": "template-project",
2449
- "summary": "Custom template project to create from, by id or full path. Cannot be combined with --template.",
2888
+ "milestone-id": {
2889
+ "name": "milestone-id",
2890
+ "summary": "Milestone id to attach.",
2450
2891
  "hasDynamicHelp": false,
2451
2892
  "multiple": false,
2452
2893
  "type": "option"
@@ -2471,12 +2912,12 @@
2471
2912
  },
2472
2913
  "hasDynamicHelp": false,
2473
2914
  "hiddenAliases": [],
2474
- "id": "gitlab:project:create",
2915
+ "id": "gitlab:mr:create",
2475
2916
  "pluginAlias": "@simplysf/simply-gitlab",
2476
2917
  "pluginName": "@simplysf/simply-gitlab",
2477
2918
  "pluginType": "core",
2478
2919
  "strict": true,
2479
- "summary": "Create a project, blank or from a template.",
2920
+ "summary": "Open a merge request.",
2480
2921
  "enableJsonFlag": true,
2481
2922
  "isWrite": true,
2482
2923
  "isESM": true,
@@ -2484,27 +2925,27 @@
2484
2925
  "lib",
2485
2926
  "commands",
2486
2927
  "gitlab",
2487
- "project",
2928
+ "mr",
2488
2929
  "create.js"
2489
2930
  ],
2490
2931
  "aliasPermutations": [],
2491
2932
  "permutations": [
2492
- "gitlab:project:create",
2493
- "project:gitlab:create",
2494
- "project:create:gitlab",
2495
- "gitlab:create:project",
2496
- "create:gitlab:project",
2497
- "create:project:gitlab"
2933
+ "gitlab:mr:create",
2934
+ "mr:gitlab:create",
2935
+ "mr:create:gitlab",
2936
+ "gitlab:create:mr",
2937
+ "create:gitlab:mr",
2938
+ "create:mr:gitlab"
2498
2939
  ]
2499
2940
  },
2500
- "gitlab:project:list": {
2941
+ "gitlab:mr:list": {
2501
2942
  "aliases": [],
2502
2943
  "args": {},
2503
- "description": "Without --search this lists every project the token can reach, newest activity first, which on a large instance is not a useful answer — narrow it with --search or --membership. Use --simple for a much smaller payload when you only need ids and paths.",
2944
+ "description": "Defaults to open merge requests, which is what a list is nearly always for; pass --state all to include closed and merged ones. The IID column is the number to pass to the other mr commands — it is per-project, and is not the \"id\" field in the JSON payload.",
2504
2945
  "examples": [
2505
- "<%= config.bin %> <%= command.id %> --membership",
2506
- "<%= config.bin %> <%= command.id %> --search platform --limit 10",
2507
- "<%= config.bin %> <%= command.id %> --search platform --simple --json"
2946
+ "<%= config.bin %> <%= command.id %> --project group/project",
2947
+ "<%= config.bin %> <%= command.id %> --project group/project --state merged --target-branch main --limit 10",
2948
+ "<%= config.bin %> <%= command.id %> --project group/project --author-username someone --json"
2508
2949
  ],
2509
2950
  "flags": {
2510
2951
  "json": {
@@ -2514,103 +2955,531 @@
2514
2955
  "allowNo": false,
2515
2956
  "type": "boolean"
2516
2957
  },
2517
- "env-file": {
2518
- "char": "e",
2519
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
2520
- "helpGroup": "CONNECTION",
2521
- "name": "env-file",
2522
- "summary": "Path to a .env file holding connection settings.",
2958
+ "env-file": {
2959
+ "char": "e",
2960
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2961
+ "helpGroup": "CONNECTION",
2962
+ "name": "env-file",
2963
+ "summary": "Path to a .env file holding connection settings.",
2964
+ "hasDynamicHelp": false,
2965
+ "multiple": false,
2966
+ "type": "option"
2967
+ },
2968
+ "gitlab-url": {
2969
+ "env": "SIMPLY_GITLAB_URL",
2970
+ "helpGroup": "CONNECTION",
2971
+ "name": "gitlab-url",
2972
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
2973
+ "hasDynamicHelp": false,
2974
+ "multiple": false,
2975
+ "type": "option"
2976
+ },
2977
+ "gitlab-token": {
2978
+ "env": "SIMPLY_GITLAB_TOKEN",
2979
+ "helpGroup": "CONNECTION",
2980
+ "name": "gitlab-token",
2981
+ "summary": "Personal, project, or group access token.",
2982
+ "hasDynamicHelp": false,
2983
+ "multiple": false,
2984
+ "type": "option"
2985
+ },
2986
+ "gitlab-token-kind": {
2987
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
2988
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
2989
+ "helpGroup": "CONNECTION",
2990
+ "name": "gitlab-token-kind",
2991
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
2992
+ "hasDynamicHelp": false,
2993
+ "multiple": false,
2994
+ "options": [
2995
+ "personal",
2996
+ "job"
2997
+ ],
2998
+ "type": "option"
2999
+ },
3000
+ "project": {
3001
+ "char": "p",
3002
+ "env": "SIMPLY_GITLAB_PROJECT",
3003
+ "name": "project",
3004
+ "required": true,
3005
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3006
+ "hasDynamicHelp": false,
3007
+ "multiple": false,
3008
+ "type": "option"
3009
+ },
3010
+ "limit": {
3011
+ "name": "limit",
3012
+ "summary": "Maximum number of merge requests to return across all pages.",
3013
+ "default": 20,
3014
+ "hasDynamicHelp": false,
3015
+ "multiple": false,
3016
+ "type": "option"
3017
+ },
3018
+ "state": {
3019
+ "name": "state",
3020
+ "summary": "Merge request state to return.",
3021
+ "default": "opened",
3022
+ "hasDynamicHelp": false,
3023
+ "multiple": false,
3024
+ "options": [
3025
+ "opened",
3026
+ "closed",
3027
+ "locked",
3028
+ "merged",
3029
+ "all"
3030
+ ],
3031
+ "type": "option"
3032
+ },
3033
+ "source-branch": {
3034
+ "name": "source-branch",
3035
+ "summary": "Only merge requests from this source branch.",
3036
+ "hasDynamicHelp": false,
3037
+ "multiple": false,
3038
+ "type": "option"
3039
+ },
3040
+ "target-branch": {
3041
+ "name": "target-branch",
3042
+ "summary": "Only merge requests into this target branch.",
3043
+ "hasDynamicHelp": false,
3044
+ "multiple": false,
3045
+ "type": "option"
3046
+ },
3047
+ "author-username": {
3048
+ "name": "author-username",
3049
+ "summary": "Only merge requests opened by this username.",
3050
+ "hasDynamicHelp": false,
3051
+ "multiple": false,
3052
+ "type": "option"
3053
+ },
3054
+ "reviewer-username": {
3055
+ "name": "reviewer-username",
3056
+ "summary": "Only merge requests this username is reviewing.",
3057
+ "hasDynamicHelp": false,
3058
+ "multiple": false,
3059
+ "type": "option"
3060
+ },
3061
+ "labels": {
3062
+ "name": "labels",
3063
+ "summary": "Comma-separated labels every result must carry.",
3064
+ "hasDynamicHelp": false,
3065
+ "multiple": false,
3066
+ "type": "option"
3067
+ },
3068
+ "search": {
3069
+ "name": "search",
3070
+ "summary": "Match against the title and description.",
3071
+ "hasDynamicHelp": false,
3072
+ "multiple": false,
3073
+ "type": "option"
3074
+ }
3075
+ },
3076
+ "hasDynamicHelp": false,
3077
+ "hiddenAliases": [],
3078
+ "id": "gitlab:mr:list",
3079
+ "pluginAlias": "@simplysf/simply-gitlab",
3080
+ "pluginName": "@simplysf/simply-gitlab",
3081
+ "pluginType": "core",
3082
+ "strict": true,
3083
+ "summary": "List merge requests for a project.",
3084
+ "enableJsonFlag": true,
3085
+ "isWrite": false,
3086
+ "isESM": true,
3087
+ "relativePath": [
3088
+ "lib",
3089
+ "commands",
3090
+ "gitlab",
3091
+ "mr",
3092
+ "list.js"
3093
+ ],
3094
+ "aliasPermutations": [],
3095
+ "permutations": [
3096
+ "gitlab:mr:list",
3097
+ "mr:gitlab:list",
3098
+ "mr:list:gitlab",
3099
+ "gitlab:list:mr",
3100
+ "list:gitlab:mr",
3101
+ "list:mr:gitlab"
3102
+ ]
3103
+ },
3104
+ "gitlab:mr:merge": {
3105
+ "aliases": [],
3106
+ "args": {},
3107
+ "description": "Merging cannot be undone by any other command, so this one refuses to send anything without --confirm. Without it, it prints the request it would send and exits 1.\n\nPass --sha with the head you reviewed (the \"Head\" line of mr view): GitLab then refuses if anything was pushed since. --auto-merge merges once checks pass, and on a project with merge trains it joins the train. --skip-merge-train uses GitLab's experimental \"merge immediately without restarting the merge train\", which merges changes the train has not tested against the merge requests queued ahead of it; it requires --sha.\n\nWhen GitLab refuses with a bare 405, the merge request is read back and the reason is named.",
3108
+ "examples": [
3109
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --sha <head-sha> --confirm",
3110
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --auto-merge --confirm",
3111
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --skip-merge-train --sha <head-sha> --confirm",
3112
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --squash --dry-run"
3113
+ ],
3114
+ "flags": {
3115
+ "json": {
3116
+ "description": "Format output as json.",
3117
+ "helpGroup": "GLOBAL",
3118
+ "name": "json",
3119
+ "allowNo": false,
3120
+ "type": "boolean"
3121
+ },
3122
+ "env-file": {
3123
+ "char": "e",
3124
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3125
+ "helpGroup": "CONNECTION",
3126
+ "name": "env-file",
3127
+ "summary": "Path to a .env file holding connection settings.",
3128
+ "hasDynamicHelp": false,
3129
+ "multiple": false,
3130
+ "type": "option"
3131
+ },
3132
+ "gitlab-url": {
3133
+ "env": "SIMPLY_GITLAB_URL",
3134
+ "helpGroup": "CONNECTION",
3135
+ "name": "gitlab-url",
3136
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3137
+ "hasDynamicHelp": false,
3138
+ "multiple": false,
3139
+ "type": "option"
3140
+ },
3141
+ "gitlab-token": {
3142
+ "env": "SIMPLY_GITLAB_TOKEN",
3143
+ "helpGroup": "CONNECTION",
3144
+ "name": "gitlab-token",
3145
+ "summary": "Personal, project, or group access token.",
3146
+ "hasDynamicHelp": false,
3147
+ "multiple": false,
3148
+ "type": "option"
3149
+ },
3150
+ "gitlab-token-kind": {
3151
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3152
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3153
+ "helpGroup": "CONNECTION",
3154
+ "name": "gitlab-token-kind",
3155
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3156
+ "hasDynamicHelp": false,
3157
+ "multiple": false,
3158
+ "options": [
3159
+ "personal",
3160
+ "job"
3161
+ ],
3162
+ "type": "option"
3163
+ },
3164
+ "project": {
3165
+ "char": "p",
3166
+ "env": "SIMPLY_GITLAB_PROJECT",
3167
+ "name": "project",
3168
+ "required": true,
3169
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3170
+ "hasDynamicHelp": false,
3171
+ "multiple": false,
3172
+ "type": "option"
3173
+ },
3174
+ "dry-run": {
3175
+ "name": "dry-run",
3176
+ "summary": "Print the request that would be sent and exit without sending it.",
3177
+ "allowNo": false,
3178
+ "type": "boolean"
3179
+ },
3180
+ "mr": {
3181
+ "name": "mr",
3182
+ "required": true,
3183
+ "summary": "Merge request iid.",
3184
+ "hasDynamicHelp": false,
3185
+ "multiple": false,
3186
+ "type": "option"
3187
+ },
3188
+ "sha": {
3189
+ "name": "sha",
3190
+ "summary": "Full sha of the source branch head you reviewed. Recommended; required with --skip-merge-train.",
3191
+ "hasDynamicHelp": false,
3192
+ "multiple": false,
3193
+ "type": "option"
3194
+ },
3195
+ "auto-merge": {
3196
+ "exclusive": [
3197
+ "skip-merge-train"
3198
+ ],
3199
+ "name": "auto-merge",
3200
+ "summary": "Merge when checks pass. On a project with merge trains, this joins the train.",
3201
+ "allowNo": false,
3202
+ "type": "boolean"
3203
+ },
3204
+ "skip-merge-train": {
3205
+ "exclusive": [
3206
+ "auto-merge"
3207
+ ],
3208
+ "name": "skip-merge-train",
3209
+ "summary": "Merge now without restarting the merge train. Experimental in GitLab.",
3210
+ "allowNo": false,
3211
+ "type": "boolean"
3212
+ },
3213
+ "squash": {
3214
+ "name": "squash",
3215
+ "summary": "Squash the commits into one.",
3216
+ "allowNo": true,
3217
+ "type": "boolean"
3218
+ },
3219
+ "remove-source-branch": {
3220
+ "name": "remove-source-branch",
3221
+ "summary": "Delete the source branch after merging.",
3222
+ "allowNo": true,
3223
+ "type": "boolean"
3224
+ },
3225
+ "merge-commit-message": {
3226
+ "name": "merge-commit-message",
3227
+ "summary": "Custom merge commit message.",
3228
+ "hasDynamicHelp": false,
3229
+ "multiple": false,
3230
+ "type": "option"
3231
+ },
3232
+ "squash-commit-message": {
3233
+ "name": "squash-commit-message",
3234
+ "summary": "Custom squash commit message.",
3235
+ "hasDynamicHelp": false,
3236
+ "multiple": false,
3237
+ "type": "option"
3238
+ },
3239
+ "confirm": {
3240
+ "name": "confirm",
3241
+ "summary": "Send the merge. Without it, nothing is sent.",
3242
+ "allowNo": false,
3243
+ "type": "boolean"
3244
+ }
3245
+ },
3246
+ "hasDynamicHelp": false,
3247
+ "hiddenAliases": [],
3248
+ "id": "gitlab:mr:merge",
3249
+ "pluginAlias": "@simplysf/simply-gitlab",
3250
+ "pluginName": "@simplysf/simply-gitlab",
3251
+ "pluginType": "core",
3252
+ "strict": true,
3253
+ "summary": "Merge a merge request, or add it to the merge train.",
3254
+ "enableJsonFlag": true,
3255
+ "isWrite": true,
3256
+ "isESM": true,
3257
+ "relativePath": [
3258
+ "lib",
3259
+ "commands",
3260
+ "gitlab",
3261
+ "mr",
3262
+ "merge.js"
3263
+ ],
3264
+ "aliasPermutations": [],
3265
+ "permutations": [
3266
+ "gitlab:mr:merge",
3267
+ "mr:gitlab:merge",
3268
+ "mr:merge:gitlab",
3269
+ "gitlab:merge:mr",
3270
+ "merge:gitlab:mr",
3271
+ "merge:mr:gitlab"
3272
+ ]
3273
+ },
3274
+ "gitlab:mr:update": {
3275
+ "aliases": [],
3276
+ "args": {},
3277
+ "description": "Only the attributes you name are changed, with one exception worth knowing: --labels replaces the whole label set rather than adding to it.\n\nNaming nothing to change is refused rather than sent, because GitLab answers an empty update with a cheerful 200 and an unchanged merge request. --state close and --state reopen do what the buttons of those names do; neither merges anything.",
3278
+ "examples": [
3279
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --title \"feat: renamed\"",
3280
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --state close",
3281
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --labels backend,urgent --dry-run"
3282
+ ],
3283
+ "flags": {
3284
+ "json": {
3285
+ "description": "Format output as json.",
3286
+ "helpGroup": "GLOBAL",
3287
+ "name": "json",
3288
+ "allowNo": false,
3289
+ "type": "boolean"
3290
+ },
3291
+ "env-file": {
3292
+ "char": "e",
3293
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3294
+ "helpGroup": "CONNECTION",
3295
+ "name": "env-file",
3296
+ "summary": "Path to a .env file holding connection settings.",
3297
+ "hasDynamicHelp": false,
3298
+ "multiple": false,
3299
+ "type": "option"
3300
+ },
3301
+ "gitlab-url": {
3302
+ "env": "SIMPLY_GITLAB_URL",
3303
+ "helpGroup": "CONNECTION",
3304
+ "name": "gitlab-url",
3305
+ "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3306
+ "hasDynamicHelp": false,
3307
+ "multiple": false,
3308
+ "type": "option"
3309
+ },
3310
+ "gitlab-token": {
3311
+ "env": "SIMPLY_GITLAB_TOKEN",
3312
+ "helpGroup": "CONNECTION",
3313
+ "name": "gitlab-token",
3314
+ "summary": "Personal, project, or group access token.",
3315
+ "hasDynamicHelp": false,
3316
+ "multiple": false,
3317
+ "type": "option"
3318
+ },
3319
+ "gitlab-token-kind": {
3320
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3321
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3322
+ "helpGroup": "CONNECTION",
3323
+ "name": "gitlab-token-kind",
3324
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3325
+ "hasDynamicHelp": false,
3326
+ "multiple": false,
3327
+ "options": [
3328
+ "personal",
3329
+ "job"
3330
+ ],
3331
+ "type": "option"
3332
+ },
3333
+ "project": {
3334
+ "char": "p",
3335
+ "env": "SIMPLY_GITLAB_PROJECT",
3336
+ "name": "project",
3337
+ "required": true,
3338
+ "summary": "Project id, or its full path such as group/subgroup/project.",
3339
+ "hasDynamicHelp": false,
3340
+ "multiple": false,
3341
+ "type": "option"
3342
+ },
3343
+ "dry-run": {
3344
+ "name": "dry-run",
3345
+ "summary": "Print the request that would be sent and exit without sending it.",
3346
+ "allowNo": false,
3347
+ "type": "boolean"
3348
+ },
3349
+ "mr": {
3350
+ "name": "mr",
3351
+ "required": true,
3352
+ "summary": "Merge request iid.",
3353
+ "hasDynamicHelp": false,
3354
+ "multiple": false,
3355
+ "type": "option"
3356
+ },
3357
+ "title": {
3358
+ "name": "title",
3359
+ "summary": "New title.",
3360
+ "hasDynamicHelp": false,
3361
+ "multiple": false,
3362
+ "type": "option"
3363
+ },
3364
+ "description": {
3365
+ "name": "description",
3366
+ "summary": "New description, as Markdown.",
3367
+ "hasDynamicHelp": false,
3368
+ "multiple": false,
3369
+ "type": "option"
3370
+ },
3371
+ "target-branch": {
3372
+ "name": "target-branch",
3373
+ "summary": "New target branch.",
3374
+ "hasDynamicHelp": false,
3375
+ "multiple": false,
3376
+ "type": "option"
3377
+ },
3378
+ "state": {
3379
+ "name": "state",
3380
+ "summary": "Close or reopen the merge request.",
3381
+ "hasDynamicHelp": false,
3382
+ "multiple": false,
3383
+ "options": [
3384
+ "close",
3385
+ "reopen"
3386
+ ],
3387
+ "type": "option"
3388
+ },
3389
+ "squash": {
3390
+ "name": "squash",
3391
+ "summary": "Squash the commits when it merges.",
3392
+ "allowNo": true,
3393
+ "type": "boolean"
3394
+ },
3395
+ "remove-source-branch": {
3396
+ "name": "remove-source-branch",
3397
+ "summary": "Delete the source branch on merge.",
3398
+ "allowNo": true,
3399
+ "type": "boolean"
3400
+ },
3401
+ "assignee-id": {
3402
+ "name": "assignee-id",
3403
+ "summary": "User id to assign, replacing the set. Repeatable.",
2523
3404
  "hasDynamicHelp": false,
2524
- "multiple": false,
3405
+ "multiple": true,
2525
3406
  "type": "option"
2526
3407
  },
2527
- "gitlab-url": {
2528
- "env": "SIMPLY_GITLAB_URL",
2529
- "helpGroup": "CONNECTION",
2530
- "name": "gitlab-url",
2531
- "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3408
+ "reviewer-id": {
3409
+ "name": "reviewer-id",
3410
+ "summary": "User id to review, replacing the set. Repeatable.",
2532
3411
  "hasDynamicHelp": false,
2533
- "multiple": false,
3412
+ "multiple": true,
2534
3413
  "type": "option"
2535
3414
  },
2536
- "gitlab-token": {
2537
- "env": "SIMPLY_GITLAB_TOKEN",
2538
- "helpGroup": "CONNECTION",
2539
- "name": "gitlab-token",
2540
- "summary": "Personal, project, or group access token.",
3415
+ "labels": {
3416
+ "name": "labels",
3417
+ "summary": "Comma-separated labels, replacing the existing set.",
2541
3418
  "hasDynamicHelp": false,
2542
3419
  "multiple": false,
2543
3420
  "type": "option"
2544
3421
  },
2545
- "limit": {
2546
- "name": "limit",
2547
- "summary": "Maximum number of projects to return across all pages.",
2548
- "default": 20,
3422
+ "milestone-id": {
3423
+ "name": "milestone-id",
3424
+ "summary": "Milestone id to attach.",
2549
3425
  "hasDynamicHelp": false,
2550
3426
  "multiple": false,
2551
3427
  "type": "option"
2552
3428
  },
2553
- "search": {
2554
- "name": "search",
2555
- "summary": "Match against the project name and path.",
3429
+ "body": {
3430
+ "exclusive": [
3431
+ "body-file"
3432
+ ],
3433
+ "name": "body",
3434
+ "summary": "Raw JSON request body.",
2556
3435
  "hasDynamicHelp": false,
2557
3436
  "multiple": false,
2558
3437
  "type": "option"
2559
3438
  },
2560
- "membership": {
2561
- "name": "membership",
2562
- "summary": "Only projects you are a member of.",
2563
- "allowNo": false,
2564
- "type": "boolean"
2565
- },
2566
- "owned": {
2567
- "name": "owned",
2568
- "summary": "Only projects you own.",
2569
- "allowNo": false,
2570
- "type": "boolean"
2571
- },
2572
- "simple": {
2573
- "name": "simple",
2574
- "summary": "Return only the core fields, for a much smaller payload.",
2575
- "allowNo": false,
2576
- "type": "boolean"
3439
+ "body-file": {
3440
+ "name": "body-file",
3441
+ "summary": "Path to a file holding the raw JSON request body.",
3442
+ "hasDynamicHelp": false,
3443
+ "multiple": false,
3444
+ "type": "option"
2577
3445
  }
2578
3446
  },
2579
3447
  "hasDynamicHelp": false,
2580
3448
  "hiddenAliases": [],
2581
- "id": "gitlab:project:list",
3449
+ "id": "gitlab:mr:update",
2582
3450
  "pluginAlias": "@simplysf/simply-gitlab",
2583
3451
  "pluginName": "@simplysf/simply-gitlab",
2584
3452
  "pluginType": "core",
2585
3453
  "strict": true,
2586
- "summary": "List projects you can see.",
3454
+ "summary": "Change an existing merge request.",
2587
3455
  "enableJsonFlag": true,
2588
- "isWrite": false,
3456
+ "isWrite": true,
2589
3457
  "isESM": true,
2590
3458
  "relativePath": [
2591
3459
  "lib",
2592
3460
  "commands",
2593
3461
  "gitlab",
2594
- "project",
2595
- "list.js"
3462
+ "mr",
3463
+ "update.js"
2596
3464
  ],
2597
3465
  "aliasPermutations": [],
2598
3466
  "permutations": [
2599
- "gitlab:project:list",
2600
- "project:gitlab:list",
2601
- "project:list:gitlab",
2602
- "gitlab:list:project",
2603
- "list:gitlab:project",
2604
- "list:project:gitlab"
3467
+ "gitlab:mr:update",
3468
+ "mr:gitlab:update",
3469
+ "mr:update:gitlab",
3470
+ "gitlab:update:mr",
3471
+ "update:gitlab:mr",
3472
+ "update:mr:gitlab"
2605
3473
  ]
2606
3474
  },
2607
- "gitlab:project:view": {
3475
+ "gitlab:mr:view": {
2608
3476
  "aliases": [],
2609
3477
  "args": {},
2610
- "description": "Accepts either the numeric id or the full path. Use --json for the complete, unmodified API payload, which carries far more than the summary below — permissions, statistics, and every feature toggle on the project.",
3478
+ "description": "Takes the project-scoped iid — the number in the merge request URL — not the instance-wide id. Use --json for the full payload, which carries the pipeline status, approvals, and diff refs the summary below leaves out.\n\nRight after a push, GitLab can report a merge status it has not finished working out. --recheck asks it to work the status out again before answering.",
2611
3479
  "examples": [
2612
- "<%= config.bin %> <%= command.id %> --project group/project",
2613
- "<%= config.bin %> <%= command.id %> --project 1234 --json"
3480
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42",
3481
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --json",
3482
+ "<%= config.bin %> <%= command.id %> --project group/project --mr 42 --recheck"
2614
3483
  ],
2615
3484
  "flags": {
2616
3485
  "json": {
@@ -2622,7 +3491,7 @@
2622
3491
  },
2623
3492
  "env-file": {
2624
3493
  "char": "e",
2625
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
3494
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2626
3495
  "helpGroup": "CONNECTION",
2627
3496
  "name": "env-file",
2628
3497
  "summary": "Path to a .env file holding connection settings.",
@@ -2648,6 +3517,20 @@
2648
3517
  "multiple": false,
2649
3518
  "type": "option"
2650
3519
  },
3520
+ "gitlab-token-kind": {
3521
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3522
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3523
+ "helpGroup": "CONNECTION",
3524
+ "name": "gitlab-token-kind",
3525
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3526
+ "hasDynamicHelp": false,
3527
+ "multiple": false,
3528
+ "options": [
3529
+ "personal",
3530
+ "job"
3531
+ ],
3532
+ "type": "option"
3533
+ },
2651
3534
  "project": {
2652
3535
  "char": "p",
2653
3536
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2657,16 +3540,30 @@
2657
3540
  "hasDynamicHelp": false,
2658
3541
  "multiple": false,
2659
3542
  "type": "option"
3543
+ },
3544
+ "mr": {
3545
+ "name": "mr",
3546
+ "required": true,
3547
+ "summary": "Merge request iid.",
3548
+ "hasDynamicHelp": false,
3549
+ "multiple": false,
3550
+ "type": "option"
3551
+ },
3552
+ "recheck": {
3553
+ "name": "recheck",
3554
+ "summary": "Ask GitLab to recheck the merge status first.",
3555
+ "allowNo": false,
3556
+ "type": "boolean"
2660
3557
  }
2661
3558
  },
2662
3559
  "hasDynamicHelp": false,
2663
3560
  "hiddenAliases": [],
2664
- "id": "gitlab:project:view",
3561
+ "id": "gitlab:mr:view",
2665
3562
  "pluginAlias": "@simplysf/simply-gitlab",
2666
3563
  "pluginName": "@simplysf/simply-gitlab",
2667
3564
  "pluginType": "core",
2668
3565
  "strict": true,
2669
- "summary": "Show one project.",
3566
+ "summary": "Show one merge request.",
2670
3567
  "enableJsonFlag": true,
2671
3568
  "isWrite": false,
2672
3569
  "isESM": true,
@@ -2674,26 +3571,26 @@
2674
3571
  "lib",
2675
3572
  "commands",
2676
3573
  "gitlab",
2677
- "project",
3574
+ "mr",
2678
3575
  "view.js"
2679
3576
  ],
2680
3577
  "aliasPermutations": [],
2681
3578
  "permutations": [
2682
- "gitlab:project:view",
2683
- "project:gitlab:view",
2684
- "project:view:gitlab",
2685
- "gitlab:view:project",
2686
- "view:gitlab:project",
2687
- "view:project:gitlab"
3579
+ "gitlab:mr:view",
3580
+ "mr:gitlab:view",
3581
+ "mr:view:gitlab",
3582
+ "gitlab:view:mr",
3583
+ "view:gitlab:mr",
3584
+ "view:mr:gitlab"
2688
3585
  ]
2689
3586
  },
2690
- "gitlab:release:list": {
3587
+ "gitlab:tag:list": {
2691
3588
  "aliases": [],
2692
3589
  "args": {},
2693
- "description": "Releases are tags with notes and assets attached, so a project can have many tags and no releases at all. Use --json for the release notes, asset links, and the commit each release points at.",
3590
+ "description": "Tags come back newest first by the commit date they point at. That is the commit date, not the tag creation date, so a tag cut today on an old commit sorts by the old commit — use --order-by name if you need a deterministic order instead.",
2694
3591
  "examples": [
2695
3592
  "<%= config.bin %> <%= command.id %> --project group/project",
2696
- "<%= config.bin %> <%= command.id %> --project group/project --limit 5 --json"
3593
+ "<%= config.bin %> <%= command.id %> --project group/project --search v1. --limit 50"
2697
3594
  ],
2698
3595
  "flags": {
2699
3596
  "json": {
@@ -2705,7 +3602,7 @@
2705
3602
  },
2706
3603
  "env-file": {
2707
3604
  "char": "e",
2708
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
3605
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2709
3606
  "helpGroup": "CONNECTION",
2710
3607
  "name": "env-file",
2711
3608
  "summary": "Path to a .env file holding connection settings.",
@@ -2731,6 +3628,20 @@
2731
3628
  "multiple": false,
2732
3629
  "type": "option"
2733
3630
  },
3631
+ "gitlab-token-kind": {
3632
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3633
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3634
+ "helpGroup": "CONNECTION",
3635
+ "name": "gitlab-token-kind",
3636
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3637
+ "hasDynamicHelp": false,
3638
+ "multiple": false,
3639
+ "options": [
3640
+ "personal",
3641
+ "job"
3642
+ ],
3643
+ "type": "option"
3644
+ },
2734
3645
  "project": {
2735
3646
  "char": "p",
2736
3647
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2743,21 +3654,51 @@
2743
3654
  },
2744
3655
  "limit": {
2745
3656
  "name": "limit",
2746
- "summary": "Maximum number of releases to return across all pages.",
3657
+ "summary": "Maximum number of tags to return across all pages.",
2747
3658
  "default": 20,
2748
3659
  "hasDynamicHelp": false,
2749
3660
  "multiple": false,
2750
3661
  "type": "option"
3662
+ },
3663
+ "search": {
3664
+ "name": "search",
3665
+ "summary": "Return only tags whose name contains this term.",
3666
+ "hasDynamicHelp": false,
3667
+ "multiple": false,
3668
+ "type": "option"
3669
+ },
3670
+ "order-by": {
3671
+ "name": "order-by",
3672
+ "summary": "Field to sort by.",
3673
+ "hasDynamicHelp": false,
3674
+ "multiple": false,
3675
+ "options": [
3676
+ "name",
3677
+ "updated",
3678
+ "version"
3679
+ ],
3680
+ "type": "option"
3681
+ },
3682
+ "sort": {
3683
+ "name": "sort",
3684
+ "summary": "Sort direction.",
3685
+ "hasDynamicHelp": false,
3686
+ "multiple": false,
3687
+ "options": [
3688
+ "asc",
3689
+ "desc"
3690
+ ],
3691
+ "type": "option"
2751
3692
  }
2752
3693
  },
2753
3694
  "hasDynamicHelp": false,
2754
3695
  "hiddenAliases": [],
2755
- "id": "gitlab:release:list",
3696
+ "id": "gitlab:tag:list",
2756
3697
  "pluginAlias": "@simplysf/simply-gitlab",
2757
3698
  "pluginName": "@simplysf/simply-gitlab",
2758
3699
  "pluginType": "core",
2759
3700
  "strict": true,
2760
- "summary": "List releases for a project.",
3701
+ "summary": "List repository tags.",
2761
3702
  "enableJsonFlag": true,
2762
3703
  "isWrite": false,
2763
3704
  "isESM": true,
@@ -2765,26 +3706,26 @@
2765
3706
  "lib",
2766
3707
  "commands",
2767
3708
  "gitlab",
2768
- "release",
3709
+ "tag",
2769
3710
  "list.js"
2770
3711
  ],
2771
3712
  "aliasPermutations": [],
2772
3713
  "permutations": [
2773
- "gitlab:release:list",
2774
- "release:gitlab:list",
2775
- "release:list:gitlab",
2776
- "gitlab:list:release",
2777
- "list:gitlab:release",
2778
- "list:release:gitlab"
3714
+ "gitlab:tag:list",
3715
+ "tag:gitlab:list",
3716
+ "tag:list:gitlab",
3717
+ "gitlab:list:tag",
3718
+ "list:gitlab:tag",
3719
+ "list:tag:gitlab"
2779
3720
  ]
2780
3721
  },
2781
- "gitlab:tag:list": {
3722
+ "gitlab:ci:environment:list": {
2782
3723
  "aliases": [],
2783
3724
  "args": {},
2784
- "description": "Tags come back newest first by the commit date they point at. That is the commit date, not the tag creation date, so a tag cut today on an old commit sorts by the old commit — use --order-by name if you need a deterministic order instead.",
3725
+ "description": "Environments are what CI deploys to and what review apps create. Both available and stopped ones are listed; --state narrows to one. Use --json for the last deployment on each, which is the field worth having when you are answering \"what is running where\".",
2785
3726
  "examples": [
2786
3727
  "<%= config.bin %> <%= command.id %> --project group/project",
2787
- "<%= config.bin %> <%= command.id %> --project group/project --search v1. --limit 50"
3728
+ "<%= config.bin %> <%= command.id %> --project group/project --state available --search prod"
2788
3729
  ],
2789
3730
  "flags": {
2790
3731
  "json": {
@@ -2796,7 +3737,7 @@
2796
3737
  },
2797
3738
  "env-file": {
2798
3739
  "char": "e",
2799
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
3740
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2800
3741
  "helpGroup": "CONNECTION",
2801
3742
  "name": "env-file",
2802
3743
  "summary": "Path to a .env file holding connection settings.",
@@ -2822,6 +3763,20 @@
2822
3763
  "multiple": false,
2823
3764
  "type": "option"
2824
3765
  },
3766
+ "gitlab-token-kind": {
3767
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3768
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3769
+ "helpGroup": "CONNECTION",
3770
+ "name": "gitlab-token-kind",
3771
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3772
+ "hasDynamicHelp": false,
3773
+ "multiple": false,
3774
+ "options": [
3775
+ "personal",
3776
+ "job"
3777
+ ],
3778
+ "type": "option"
3779
+ },
2825
3780
  "project": {
2826
3781
  "char": "p",
2827
3782
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2834,51 +3789,46 @@
2834
3789
  },
2835
3790
  "limit": {
2836
3791
  "name": "limit",
2837
- "summary": "Maximum number of tags to return across all pages.",
3792
+ "summary": "Maximum number of environments to return across all pages.",
2838
3793
  "default": 20,
2839
3794
  "hasDynamicHelp": false,
2840
3795
  "multiple": false,
2841
3796
  "type": "option"
2842
3797
  },
2843
- "search": {
2844
- "name": "search",
2845
- "summary": "Return only tags whose name contains this term.",
3798
+ "name": {
3799
+ "name": "name",
3800
+ "summary": "Return the environment with exactly this name.",
2846
3801
  "hasDynamicHelp": false,
2847
3802
  "multiple": false,
2848
3803
  "type": "option"
2849
3804
  },
2850
- "order-by": {
2851
- "name": "order-by",
2852
- "summary": "Field to sort by.",
3805
+ "search": {
3806
+ "name": "search",
3807
+ "summary": "Return environments whose name contains this term.",
2853
3808
  "hasDynamicHelp": false,
2854
3809
  "multiple": false,
2855
- "options": [
2856
- "name",
2857
- "updated",
2858
- "version"
2859
- ],
2860
3810
  "type": "option"
2861
3811
  },
2862
- "sort": {
2863
- "name": "sort",
2864
- "summary": "Sort direction.",
3812
+ "state": {
3813
+ "name": "state",
3814
+ "summary": "Environment state.",
2865
3815
  "hasDynamicHelp": false,
2866
3816
  "multiple": false,
2867
3817
  "options": [
2868
- "asc",
2869
- "desc"
3818
+ "available",
3819
+ "stopped"
2870
3820
  ],
2871
3821
  "type": "option"
2872
3822
  }
2873
3823
  },
2874
3824
  "hasDynamicHelp": false,
2875
3825
  "hiddenAliases": [],
2876
- "id": "gitlab:tag:list",
3826
+ "id": "gitlab:ci:environment:list",
2877
3827
  "pluginAlias": "@simplysf/simply-gitlab",
2878
3828
  "pluginName": "@simplysf/simply-gitlab",
2879
3829
  "pluginType": "core",
2880
3830
  "strict": true,
2881
- "summary": "List repository tags.",
3831
+ "summary": "List a project deployment environments.",
2882
3832
  "enableJsonFlag": true,
2883
3833
  "isWrite": false,
2884
3834
  "isESM": true,
@@ -2886,26 +3836,45 @@
2886
3836
  "lib",
2887
3837
  "commands",
2888
3838
  "gitlab",
2889
- "tag",
3839
+ "ci",
3840
+ "environment",
2890
3841
  "list.js"
2891
3842
  ],
2892
3843
  "aliasPermutations": [],
2893
3844
  "permutations": [
2894
- "gitlab:tag:list",
2895
- "tag:gitlab:list",
2896
- "tag:list:gitlab",
2897
- "gitlab:list:tag",
2898
- "list:gitlab:tag",
2899
- "list:tag:gitlab"
3845
+ "gitlab:ci:environment:list",
3846
+ "ci:gitlab:environment:list",
3847
+ "ci:environment:gitlab:list",
3848
+ "ci:environment:list:gitlab",
3849
+ "gitlab:environment:ci:list",
3850
+ "environment:gitlab:ci:list",
3851
+ "environment:ci:gitlab:list",
3852
+ "environment:ci:list:gitlab",
3853
+ "gitlab:environment:list:ci",
3854
+ "environment:gitlab:list:ci",
3855
+ "environment:list:gitlab:ci",
3856
+ "environment:list:ci:gitlab",
3857
+ "gitlab:ci:list:environment",
3858
+ "ci:gitlab:list:environment",
3859
+ "ci:list:gitlab:environment",
3860
+ "ci:list:environment:gitlab",
3861
+ "gitlab:list:ci:environment",
3862
+ "list:gitlab:ci:environment",
3863
+ "list:ci:gitlab:environment",
3864
+ "list:ci:environment:gitlab",
3865
+ "gitlab:list:environment:ci",
3866
+ "list:gitlab:environment:ci",
3867
+ "list:environment:gitlab:ci",
3868
+ "list:environment:ci:gitlab"
2900
3869
  ]
2901
3870
  },
2902
- "gitlab:ci:environment:list": {
3871
+ "gitlab:ci:variable:list": {
2903
3872
  "aliases": [],
2904
3873
  "args": {},
2905
- "description": "Environments are what CI deploys to and what review apps create. Both available and stopped ones are listed; --state narrows to one. Use --json for the last deployment on each, which is the field worth having when you are answering \"what is running where\".",
3874
+ "description": "Variable values are hidden by default, including under --json. GitLab returns every value in clear text on this endpoint — the \"masked\" attribute only hides a value in job logs, not from the API — and those values are deploy keys and production credentials.\n\nPass --reveal to print them. Doing so puts live secrets on stdout, into your shell history if you redirect it, and into the context of anything reading this output, so it is a deliberate step rather than the default.",
2906
3875
  "examples": [
2907
3876
  "<%= config.bin %> <%= command.id %> --project group/project",
2908
- "<%= config.bin %> <%= command.id %> --project group/project --state available --search prod"
3877
+ "<%= config.bin %> <%= command.id %> --project group/project --reveal"
2909
3878
  ],
2910
3879
  "flags": {
2911
3880
  "json": {
@@ -2917,7 +3886,7 @@
2917
3886
  },
2918
3887
  "env-file": {
2919
3888
  "char": "e",
2920
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
3889
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
2921
3890
  "helpGroup": "CONNECTION",
2922
3891
  "name": "env-file",
2923
3892
  "summary": "Path to a .env file holding connection settings.",
@@ -2943,6 +3912,20 @@
2943
3912
  "multiple": false,
2944
3913
  "type": "option"
2945
3914
  },
3915
+ "gitlab-token-kind": {
3916
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
3917
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
3918
+ "helpGroup": "CONNECTION",
3919
+ "name": "gitlab-token-kind",
3920
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
3921
+ "hasDynamicHelp": false,
3922
+ "multiple": false,
3923
+ "options": [
3924
+ "personal",
3925
+ "job"
3926
+ ],
3927
+ "type": "option"
3928
+ },
2946
3929
  "project": {
2947
3930
  "char": "p",
2948
3931
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -2955,46 +3938,28 @@
2955
3938
  },
2956
3939
  "limit": {
2957
3940
  "name": "limit",
2958
- "summary": "Maximum number of environments to return across all pages.",
2959
- "default": 20,
2960
- "hasDynamicHelp": false,
2961
- "multiple": false,
2962
- "type": "option"
2963
- },
2964
- "name": {
2965
- "name": "name",
2966
- "summary": "Return the environment with exactly this name.",
2967
- "hasDynamicHelp": false,
2968
- "multiple": false,
2969
- "type": "option"
2970
- },
2971
- "search": {
2972
- "name": "search",
2973
- "summary": "Return environments whose name contains this term.",
3941
+ "summary": "Maximum number of variables to return across all pages.",
3942
+ "default": 50,
2974
3943
  "hasDynamicHelp": false,
2975
3944
  "multiple": false,
2976
3945
  "type": "option"
2977
3946
  },
2978
- "state": {
2979
- "name": "state",
2980
- "summary": "Environment state.",
2981
- "hasDynamicHelp": false,
2982
- "multiple": false,
2983
- "options": [
2984
- "available",
2985
- "stopped"
2986
- ],
2987
- "type": "option"
3947
+ "reveal": {
3948
+ "description": "Off by default. Every value on this endpoint is a live secret, so revealing them is worth a moment of thought about where this output is going.",
3949
+ "name": "reveal",
3950
+ "summary": "Print the variable values in clear text.",
3951
+ "allowNo": false,
3952
+ "type": "boolean"
2988
3953
  }
2989
3954
  },
2990
3955
  "hasDynamicHelp": false,
2991
3956
  "hiddenAliases": [],
2992
- "id": "gitlab:ci:environment:list",
3957
+ "id": "gitlab:ci:variable:list",
2993
3958
  "pluginAlias": "@simplysf/simply-gitlab",
2994
3959
  "pluginName": "@simplysf/simply-gitlab",
2995
3960
  "pluginType": "core",
2996
3961
  "strict": true,
2997
- "summary": "List a project deployment environments.",
3962
+ "summary": "List a project CI/CD variables.",
2998
3963
  "enableJsonFlag": true,
2999
3964
  "isWrite": false,
3000
3965
  "isESM": true,
@@ -3003,35 +3968,35 @@
3003
3968
  "commands",
3004
3969
  "gitlab",
3005
3970
  "ci",
3006
- "environment",
3971
+ "variable",
3007
3972
  "list.js"
3008
3973
  ],
3009
3974
  "aliasPermutations": [],
3010
3975
  "permutations": [
3011
- "gitlab:ci:environment:list",
3012
- "ci:gitlab:environment:list",
3013
- "ci:environment:gitlab:list",
3014
- "ci:environment:list:gitlab",
3015
- "gitlab:environment:ci:list",
3016
- "environment:gitlab:ci:list",
3017
- "environment:ci:gitlab:list",
3018
- "environment:ci:list:gitlab",
3019
- "gitlab:environment:list:ci",
3020
- "environment:gitlab:list:ci",
3021
- "environment:list:gitlab:ci",
3022
- "environment:list:ci:gitlab",
3023
- "gitlab:ci:list:environment",
3024
- "ci:gitlab:list:environment",
3025
- "ci:list:gitlab:environment",
3026
- "ci:list:environment:gitlab",
3027
- "gitlab:list:ci:environment",
3028
- "list:gitlab:ci:environment",
3029
- "list:ci:gitlab:environment",
3030
- "list:ci:environment:gitlab",
3031
- "gitlab:list:environment:ci",
3032
- "list:gitlab:environment:ci",
3033
- "list:environment:gitlab:ci",
3034
- "list:environment:ci:gitlab"
3976
+ "gitlab:ci:variable:list",
3977
+ "ci:gitlab:variable:list",
3978
+ "ci:variable:gitlab:list",
3979
+ "ci:variable:list:gitlab",
3980
+ "gitlab:variable:ci:list",
3981
+ "variable:gitlab:ci:list",
3982
+ "variable:ci:gitlab:list",
3983
+ "variable:ci:list:gitlab",
3984
+ "gitlab:variable:list:ci",
3985
+ "variable:gitlab:list:ci",
3986
+ "variable:list:gitlab:ci",
3987
+ "variable:list:ci:gitlab",
3988
+ "gitlab:ci:list:variable",
3989
+ "ci:gitlab:list:variable",
3990
+ "ci:list:gitlab:variable",
3991
+ "ci:list:variable:gitlab",
3992
+ "gitlab:list:ci:variable",
3993
+ "list:gitlab:ci:variable",
3994
+ "list:ci:gitlab:variable",
3995
+ "list:ci:variable:gitlab",
3996
+ "gitlab:list:variable:ci",
3997
+ "list:gitlab:variable:ci",
3998
+ "list:variable:gitlab:ci",
3999
+ "list:variable:ci:gitlab"
3035
4000
  ]
3036
4001
  },
3037
4002
  "gitlab:ci:job:list": {
@@ -3052,7 +4017,7 @@
3052
4017
  },
3053
4018
  "env-file": {
3054
4019
  "char": "e",
3055
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
4020
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3056
4021
  "helpGroup": "CONNECTION",
3057
4022
  "name": "env-file",
3058
4023
  "summary": "Path to a .env file holding connection settings.",
@@ -3078,6 +4043,20 @@
3078
4043
  "multiple": false,
3079
4044
  "type": "option"
3080
4045
  },
4046
+ "gitlab-token-kind": {
4047
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4048
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4049
+ "helpGroup": "CONNECTION",
4050
+ "name": "gitlab-token-kind",
4051
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4052
+ "hasDynamicHelp": false,
4053
+ "multiple": false,
4054
+ "options": [
4055
+ "personal",
4056
+ "job"
4057
+ ],
4058
+ "type": "option"
4059
+ },
3081
4060
  "project": {
3082
4061
  "char": "p",
3083
4062
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -3180,7 +4159,7 @@
3180
4159
  },
3181
4160
  "env-file": {
3182
4161
  "char": "e",
3183
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
4162
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3184
4163
  "helpGroup": "CONNECTION",
3185
4164
  "name": "env-file",
3186
4165
  "summary": "Path to a .env file holding connection settings.",
@@ -3206,6 +4185,20 @@
3206
4185
  "multiple": false,
3207
4186
  "type": "option"
3208
4187
  },
4188
+ "gitlab-token-kind": {
4189
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4190
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4191
+ "helpGroup": "CONNECTION",
4192
+ "name": "gitlab-token-kind",
4193
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4194
+ "hasDynamicHelp": false,
4195
+ "multiple": false,
4196
+ "options": [
4197
+ "personal",
4198
+ "job"
4199
+ ],
4200
+ "type": "option"
4201
+ },
3209
4202
  "project": {
3210
4203
  "char": "p",
3211
4204
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -3280,123 +4273,6 @@
3280
4273
  "log:job:ci:gitlab"
3281
4274
  ]
3282
4275
  },
3283
- "gitlab:ci:variable:list": {
3284
- "aliases": [],
3285
- "args": {},
3286
- "description": "Variable values are hidden by default, including under --json. GitLab returns every value in clear text on this endpoint — the \"masked\" attribute only hides a value in job logs, not from the API — and those values are deploy keys and production credentials.\n\nPass --reveal to print them. Doing so puts live secrets on stdout, into your shell history if you redirect it, and into the context of anything reading this output, so it is a deliberate step rather than the default.",
3287
- "examples": [
3288
- "<%= config.bin %> <%= command.id %> --project group/project",
3289
- "<%= config.bin %> <%= command.id %> --project group/project --reveal"
3290
- ],
3291
- "flags": {
3292
- "json": {
3293
- "description": "Format output as json.",
3294
- "helpGroup": "GLOBAL",
3295
- "name": "json",
3296
- "allowNo": false,
3297
- "type": "boolean"
3298
- },
3299
- "env-file": {
3300
- "char": "e",
3301
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
3302
- "helpGroup": "CONNECTION",
3303
- "name": "env-file",
3304
- "summary": "Path to a .env file holding connection settings.",
3305
- "hasDynamicHelp": false,
3306
- "multiple": false,
3307
- "type": "option"
3308
- },
3309
- "gitlab-url": {
3310
- "env": "SIMPLY_GITLAB_URL",
3311
- "helpGroup": "CONNECTION",
3312
- "name": "gitlab-url",
3313
- "summary": "Base URL of the GitLab instance. Defaults to https://gitlab.com.",
3314
- "hasDynamicHelp": false,
3315
- "multiple": false,
3316
- "type": "option"
3317
- },
3318
- "gitlab-token": {
3319
- "env": "SIMPLY_GITLAB_TOKEN",
3320
- "helpGroup": "CONNECTION",
3321
- "name": "gitlab-token",
3322
- "summary": "Personal, project, or group access token.",
3323
- "hasDynamicHelp": false,
3324
- "multiple": false,
3325
- "type": "option"
3326
- },
3327
- "project": {
3328
- "char": "p",
3329
- "env": "SIMPLY_GITLAB_PROJECT",
3330
- "name": "project",
3331
- "required": true,
3332
- "summary": "Project id, or its full path such as group/subgroup/project.",
3333
- "hasDynamicHelp": false,
3334
- "multiple": false,
3335
- "type": "option"
3336
- },
3337
- "limit": {
3338
- "name": "limit",
3339
- "summary": "Maximum number of variables to return across all pages.",
3340
- "default": 50,
3341
- "hasDynamicHelp": false,
3342
- "multiple": false,
3343
- "type": "option"
3344
- },
3345
- "reveal": {
3346
- "description": "Off by default. Every value on this endpoint is a live secret, so revealing them is worth a moment of thought about where this output is going.",
3347
- "name": "reveal",
3348
- "summary": "Print the variable values in clear text.",
3349
- "allowNo": false,
3350
- "type": "boolean"
3351
- }
3352
- },
3353
- "hasDynamicHelp": false,
3354
- "hiddenAliases": [],
3355
- "id": "gitlab:ci:variable:list",
3356
- "pluginAlias": "@simplysf/simply-gitlab",
3357
- "pluginName": "@simplysf/simply-gitlab",
3358
- "pluginType": "core",
3359
- "strict": true,
3360
- "summary": "List a project CI/CD variables.",
3361
- "enableJsonFlag": true,
3362
- "isWrite": false,
3363
- "isESM": true,
3364
- "relativePath": [
3365
- "lib",
3366
- "commands",
3367
- "gitlab",
3368
- "ci",
3369
- "variable",
3370
- "list.js"
3371
- ],
3372
- "aliasPermutations": [],
3373
- "permutations": [
3374
- "gitlab:ci:variable:list",
3375
- "ci:gitlab:variable:list",
3376
- "ci:variable:gitlab:list",
3377
- "ci:variable:list:gitlab",
3378
- "gitlab:variable:ci:list",
3379
- "variable:gitlab:ci:list",
3380
- "variable:ci:gitlab:list",
3381
- "variable:ci:list:gitlab",
3382
- "gitlab:variable:list:ci",
3383
- "variable:gitlab:list:ci",
3384
- "variable:list:gitlab:ci",
3385
- "variable:list:ci:gitlab",
3386
- "gitlab:ci:list:variable",
3387
- "ci:gitlab:list:variable",
3388
- "ci:list:gitlab:variable",
3389
- "ci:list:variable:gitlab",
3390
- "gitlab:list:ci:variable",
3391
- "list:gitlab:ci:variable",
3392
- "list:ci:gitlab:variable",
3393
- "list:ci:variable:gitlab",
3394
- "gitlab:list:variable:ci",
3395
- "list:gitlab:variable:ci",
3396
- "list:variable:gitlab:ci",
3397
- "list:variable:ci:gitlab"
3398
- ]
3399
- },
3400
4276
  "gitlab:mr:comment:list": {
3401
4277
  "aliases": [],
3402
4278
  "args": {},
@@ -3416,7 +4292,7 @@
3416
4292
  },
3417
4293
  "env-file": {
3418
4294
  "char": "e",
3419
- "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and their deprecated unprefixed names) are read from it. A path that cannot be read is an error.",
4295
+ "description": "Loaded before anything else. Variables already present in the environment win, so the file never overrides an explicit export, and only GitLab connection variables (SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_TOKEN_KIND, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and the deprecated unprefixed names of all but the token kind) are read from it. A path that cannot be read is an error.",
3420
4296
  "helpGroup": "CONNECTION",
3421
4297
  "name": "env-file",
3422
4298
  "summary": "Path to a .env file holding connection settings.",
@@ -3442,6 +4318,20 @@
3442
4318
  "multiple": false,
3443
4319
  "type": "option"
3444
4320
  },
4321
+ "gitlab-token-kind": {
4322
+ "description": "Pass job when the token is a pipeline's CI_JOB_TOKEN, which GitLab accepts under a different header from every other token. A job token can reach only some endpoints, and which ones depends on the instance and on the project's job token settings.",
4323
+ "env": "SIMPLY_GITLAB_TOKEN_KIND",
4324
+ "helpGroup": "CONNECTION",
4325
+ "name": "gitlab-token-kind",
4326
+ "summary": "What kind of token --gitlab-token is. Defaults to personal.",
4327
+ "hasDynamicHelp": false,
4328
+ "multiple": false,
4329
+ "options": [
4330
+ "personal",
4331
+ "job"
4332
+ ],
4333
+ "type": "option"
4334
+ },
3445
4335
  "project": {
3446
4336
  "char": "p",
3447
4337
  "env": "SIMPLY_GITLAB_PROJECT",
@@ -3547,5 +4437,5 @@
3547
4437
  ]
3548
4438
  }
3549
4439
  },
3550
- "version": "0.12.0"
4440
+ "version": "0.13.0"
3551
4441
  }