@simplysf/simply-gitlab 0.9.0 → 0.11.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.
package/README.md CHANGED
@@ -200,7 +200,7 @@ FLAG DESCRIPTIONS
200
200
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
201
201
  ```
202
202
 
203
- _See code: [lib/commands/gitlab/branch/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/branch/create.js)_
203
+ _See code: [lib/commands/gitlab/branch/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/branch/create.js)_
204
204
 
205
205
  ## `simply gitlab branch list`
206
206
 
@@ -243,7 +243,7 @@ FLAG DESCRIPTIONS
243
243
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
244
244
  ```
245
245
 
246
- _See code: [lib/commands/gitlab/branch/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/branch/list.js)_
246
+ _See code: [lib/commands/gitlab/branch/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/branch/list.js)_
247
247
 
248
248
  ## `simply gitlab ci environment list`
249
249
 
@@ -289,7 +289,7 @@ FLAG DESCRIPTIONS
289
289
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
290
290
  ```
291
291
 
292
- _See code: [lib/commands/gitlab/ci/environment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/ci/environment/list.js)_
292
+ _See code: [lib/commands/gitlab/ci/environment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/ci/environment/list.js)_
293
293
 
294
294
  ## `simply gitlab ci job list`
295
295
 
@@ -333,7 +333,7 @@ FLAG DESCRIPTIONS
333
333
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
334
334
  ```
335
335
 
336
- _See code: [lib/commands/gitlab/ci/job/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/list.js)_
336
+ _See code: [lib/commands/gitlab/ci/job/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/list.js)_
337
337
 
338
338
  ## `simply gitlab ci job log`
339
339
 
@@ -378,7 +378,7 @@ FLAG DESCRIPTIONS
378
378
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
379
379
  ```
380
380
 
381
- _See code: [lib/commands/gitlab/ci/job/log.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/log.js)_
381
+ _See code: [lib/commands/gitlab/ci/job/log.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/ci/job/log.js)_
382
382
 
383
383
  ## `simply gitlab ci variable list`
384
384
 
@@ -429,7 +429,7 @@ FLAG DESCRIPTIONS
429
429
  where this output is going.
430
430
  ```
431
431
 
432
- _See code: [lib/commands/gitlab/ci/variable/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/ci/variable/list.js)_
432
+ _See code: [lib/commands/gitlab/ci/variable/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/ci/variable/list.js)_
433
433
 
434
434
  ## `simply gitlab commit create`
435
435
 
@@ -489,7 +489,7 @@ FLAG DESCRIPTIONS
489
489
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
490
490
  ```
491
491
 
492
- _See code: [lib/commands/gitlab/commit/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/commit/create.js)_
492
+ _See code: [lib/commands/gitlab/commit/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/commit/create.js)_
493
493
 
494
494
  ## `simply gitlab commit diff`
495
495
 
@@ -531,7 +531,7 @@ FLAG DESCRIPTIONS
531
531
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
532
532
  ```
533
533
 
534
- _See code: [lib/commands/gitlab/commit/diff.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/commit/diff.js)_
534
+ _See code: [lib/commands/gitlab/commit/diff.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/commit/diff.js)_
535
535
 
536
536
  ## `simply gitlab commit list`
537
537
 
@@ -582,7 +582,7 @@ FLAG DESCRIPTIONS
582
582
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
583
583
  ```
584
584
 
585
- _See code: [lib/commands/gitlab/commit/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/commit/list.js)_
585
+ _See code: [lib/commands/gitlab/commit/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/commit/list.js)_
586
586
 
587
587
  ## `simply gitlab commit view`
588
588
 
@@ -623,7 +623,7 @@ FLAG DESCRIPTIONS
623
623
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
624
624
  ```
625
625
 
626
- _See code: [lib/commands/gitlab/commit/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/commit/view.js)_
626
+ _See code: [lib/commands/gitlab/commit/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/commit/view.js)_
627
627
 
628
628
  ## `simply gitlab config apply`
629
629
 
@@ -690,7 +690,7 @@ FLAG DESCRIPTIONS
690
690
  the config does not target is an error rather than a silent no-op.
691
691
  ```
692
692
 
693
- _See code: [lib/commands/gitlab/config/apply.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/config/apply.js)_
693
+ _See code: [lib/commands/gitlab/config/apply.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/config/apply.js)_
694
694
 
695
695
  ## `simply gitlab config export`
696
696
 
@@ -699,14 +699,14 @@ Write a baseline config describing an existing project.
699
699
  ```
700
700
  USAGE
701
701
  $ simply gitlab config export -p <value> [--json] [-e <value>] [--gitlab-url <value>] [--gitlab-token <value>]
702
- [--section settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|variables...]
702
+ [--section settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|badges|variables...]
703
703
 
704
704
  FLAGS
705
705
  -p, --project=<value> (required) [env: GITLAB_PROJECT] Project id, or its full path such as
706
706
  group/subgroup/project.
707
707
  --section=<option>... Comma-separated sections to export. Defaults to all of them.
708
- <options:
709
- settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|variables>
708
+ <options: settings|protectedBranches|protectedTags|approvals|approvalRules|pushRules|badges
709
+ |variables>
710
710
 
711
711
  CONNECTION FLAGS
712
712
  -e, --env-file=<value> Path to a .env file holding connection settings.
@@ -741,7 +741,7 @@ FLAG DESCRIPTIONS
741
741
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
742
742
  ```
743
743
 
744
- _See code: [lib/commands/gitlab/config/export.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/config/export.js)_
744
+ _See code: [lib/commands/gitlab/config/export.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/config/export.js)_
745
745
 
746
746
  ## `simply gitlab config plan`
747
747
 
@@ -809,7 +809,7 @@ FLAG DESCRIPTIONS
809
809
  the config does not target is an error rather than a silent no-op.
810
810
  ```
811
811
 
812
- _See code: [lib/commands/gitlab/config/plan.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/config/plan.js)_
812
+ _See code: [lib/commands/gitlab/config/plan.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/config/plan.js)_
813
813
 
814
814
  ## `simply gitlab file create`
815
815
 
@@ -861,7 +861,7 @@ FLAG DESCRIPTIONS
861
861
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
862
862
  ```
863
863
 
864
- _See code: [lib/commands/gitlab/file/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/file/create.js)_
864
+ _See code: [lib/commands/gitlab/file/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/file/create.js)_
865
865
 
866
866
  ## `simply gitlab file update`
867
867
 
@@ -914,7 +914,7 @@ FLAG DESCRIPTIONS
914
914
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
915
915
  ```
916
916
 
917
- _See code: [lib/commands/gitlab/file/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/file/update.js)_
917
+ _See code: [lib/commands/gitlab/file/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/file/update.js)_
918
918
 
919
919
  ## `simply gitlab file view`
920
920
 
@@ -960,7 +960,7 @@ FLAG DESCRIPTIONS
960
960
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
961
961
  ```
962
962
 
963
- _See code: [lib/commands/gitlab/file/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/file/view.js)_
963
+ _See code: [lib/commands/gitlab/file/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/file/view.js)_
964
964
 
965
965
  ## `simply gitlab mr comment list`
966
966
 
@@ -1013,7 +1013,7 @@ FLAG DESCRIPTIONS
1013
1013
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1014
1014
  ```
1015
1015
 
1016
- _See code: [lib/commands/gitlab/mr/comment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/comment/list.js)_
1016
+ _See code: [lib/commands/gitlab/mr/comment/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/comment/list.js)_
1017
1017
 
1018
1018
  ## `simply gitlab mr create`
1019
1019
 
@@ -1074,7 +1074,7 @@ FLAG DESCRIPTIONS
1074
1074
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1075
1075
  ```
1076
1076
 
1077
- _See code: [lib/commands/gitlab/mr/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/create.js)_
1077
+ _See code: [lib/commands/gitlab/mr/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/create.js)_
1078
1078
 
1079
1079
  ## `simply gitlab mr list`
1080
1080
 
@@ -1128,7 +1128,7 @@ FLAG DESCRIPTIONS
1128
1128
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1129
1129
  ```
1130
1130
 
1131
- _See code: [lib/commands/gitlab/mr/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/list.js)_
1131
+ _See code: [lib/commands/gitlab/mr/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/list.js)_
1132
1132
 
1133
1133
  ## `simply gitlab mr merge`
1134
1134
 
@@ -1192,7 +1192,7 @@ FLAG DESCRIPTIONS
1192
1192
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1193
1193
  ```
1194
1194
 
1195
- _See code: [lib/commands/gitlab/mr/merge.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/merge.js)_
1195
+ _See code: [lib/commands/gitlab/mr/merge.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/merge.js)_
1196
1196
 
1197
1197
  ## `simply gitlab mr update`
1198
1198
 
@@ -1256,7 +1256,7 @@ FLAG DESCRIPTIONS
1256
1256
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1257
1257
  ```
1258
1258
 
1259
- _See code: [lib/commands/gitlab/mr/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/update.js)_
1259
+ _See code: [lib/commands/gitlab/mr/update.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/update.js)_
1260
1260
 
1261
1261
  ## `simply gitlab mr view`
1262
1262
 
@@ -1297,7 +1297,7 @@ FLAG DESCRIPTIONS
1297
1297
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1298
1298
  ```
1299
1299
 
1300
- _See code: [lib/commands/gitlab/mr/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/mr/view.js)_
1300
+ _See code: [lib/commands/gitlab/mr/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/mr/view.js)_
1301
1301
 
1302
1302
  ## `simply gitlab project create`
1303
1303
 
@@ -1379,7 +1379,7 @@ FLAG DESCRIPTIONS
1379
1379
  Defaults to the namespace of the token owner.
1380
1380
  ```
1381
1381
 
1382
- _See code: [lib/commands/gitlab/project/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/project/create.js)_
1382
+ _See code: [lib/commands/gitlab/project/create.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/project/create.js)_
1383
1383
 
1384
1384
  ## `simply gitlab project list`
1385
1385
 
@@ -1426,7 +1426,7 @@ FLAG DESCRIPTIONS
1426
1426
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1427
1427
  ```
1428
1428
 
1429
- _See code: [lib/commands/gitlab/project/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/project/list.js)_
1429
+ _See code: [lib/commands/gitlab/project/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/project/list.js)_
1430
1430
 
1431
1431
  ## `simply gitlab project view`
1432
1432
 
@@ -1465,7 +1465,7 @@ FLAG DESCRIPTIONS
1465
1465
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1466
1466
  ```
1467
1467
 
1468
- _See code: [lib/commands/gitlab/project/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/project/view.js)_
1468
+ _See code: [lib/commands/gitlab/project/view.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/project/view.js)_
1469
1469
 
1470
1470
  ## `simply gitlab release list`
1471
1471
 
@@ -1506,7 +1506,7 @@ FLAG DESCRIPTIONS
1506
1506
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1507
1507
  ```
1508
1508
 
1509
- _See code: [lib/commands/gitlab/release/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/release/list.js)_
1509
+ _See code: [lib/commands/gitlab/release/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/release/list.js)_
1510
1510
 
1511
1511
  ## `simply gitlab search`
1512
1512
 
@@ -1561,7 +1561,7 @@ FLAG DESCRIPTIONS
1561
1561
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1562
1562
  ```
1563
1563
 
1564
- _See code: [lib/commands/gitlab/search.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/search.js)_
1564
+ _See code: [lib/commands/gitlab/search.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/search.js)_
1565
1565
 
1566
1566
  ## `simply gitlab tag list`
1567
1567
 
@@ -1608,7 +1608,7 @@ FLAG DESCRIPTIONS
1608
1608
  explicit export, and only GitLab connection variables are read from it. A path that cannot be read is an error.
1609
1609
  ```
1610
1610
 
1611
- _See code: [lib/commands/gitlab/tag/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.8.0/packages/simply-gitlab/lib/commands/gitlab/tag/list.js)_
1611
+ _See code: [lib/commands/gitlab/tag/list.js](https://github.com/SimplySF/simply-gitlab/blob/@simplysf/simply-gitlab@0.10.0/packages/simply-gitlab/lib/commands/gitlab/tag/list.js)_
1612
1612
  <!-- commandsstop -->
1613
1613
 
1614
1614
  ## License
@@ -29,6 +29,45 @@ The output is deliberately verbose — every supported key, not a curated subset
29
29
  line is easier than discovering that a key exists. Variables come out as metadata only: keys,
30
30
  scopes, and flags, never values.
31
31
 
32
+ ### Feature visibility
33
+
34
+ Project features are exported as access levels rather than on/off booleans:
35
+
36
+ | Feature | Key |
37
+ | ----------------------- | -------------------------------------- |
38
+ | Analytics | `analytics_access_level` |
39
+ | Environments | `environments_access_level` |
40
+ | Feature flags | `feature_flags_access_level` |
41
+ | Infrastructure | `infrastructure_access_level` |
42
+ | Issues | `issues_access_level` |
43
+ | Merge requests | `merge_requests_access_level` |
44
+ | Model experiments | `model_experiments_access_level` |
45
+ | Model registry | `model_registry_access_level` |
46
+ | Monitor | `monitor_access_level` |
47
+ | Package registry | `package_registry_access_level` |
48
+ | Pages | `pages_access_level` |
49
+ | Pipelines | `builds_access_level` |
50
+ | Releases | `releases_access_level` |
51
+ | Repository | `repository_access_level` |
52
+ | Requirements | `requirements_access_level` |
53
+ | Security and compliance | `security_and_compliance_access_level` |
54
+ | Snippets | `snippets_access_level` |
55
+ | Wiki | `wiki_access_level` |
56
+
57
+ Each takes `disabled`, `private` (project members only), or `enabled` (everyone with access to the
58
+ project). `package_registry_access_level` and `pages_access_level` also take `public`.
59
+
60
+ Export no longer writes `issues_enabled`, `wiki_enabled`, or `packages_enabled`, which GitLab has
61
+ deprecated. A baseline that declares them still works, but replace them rather than declaring both,
62
+ since each pair controls the same feature.
63
+
64
+ GitLab refuses a `repository_access_level` lower than `merge_requests_access_level` or
65
+ `builds_access_level`. Keep the three together when you trim an export: a baseline that tightens the
66
+ repository alone can fail on a project where the other two are still open.
67
+
68
+ A key the instance does not report is left out of the export. Written in by hand, the same key shows
69
+ as a change on every `plan`, because there is nothing on the instance to compare it with.
70
+
32
71
  ## Point it at the rest
33
72
 
34
73
  The exported file targets only the project it came from. Widen it on purpose:
@@ -104,7 +143,7 @@ guarantee rather than an approximation. A second run against a converged project
104
143
  at all.
105
144
 
106
145
  Sections are applied in a fixed order: settings, protected branches, protected tags, approval
107
- settings, approval rules, push rules. That order exists because an approval rule scoped to `main`
146
+ settings, approval rules, push rules, badges. That order exists because an approval rule scoped to `main`
108
147
  needs `main` protected before it can reference it.
109
148
 
110
149
  One project failing does not abandon the other forty-nine. There is no transaction across GitLab
@@ -126,7 +165,7 @@ where it stopped, and `plan` afterwards shows what is left.
126
165
  }
127
166
  ```
128
167
 
129
- Lists merge by a natural key — `name` for branches, tags, and rules; `key` plus `environment_scope`
168
+ Lists merge by a natural key — `name` for branches, tags, rules, and badges; `key` plus `environment_scope`
130
169
  for variables — so an override adjusts one entry rather than restating the array. The rule above
131
170
  changes one number and inherits the usernames from the baseline.
132
171
 
@@ -163,6 +202,29 @@ over time:
163
202
  simply gitlab config plan --config ./baseline.json --json | jq '.summary'
164
203
  ```
165
204
 
205
+ ## Badges
206
+
207
+ `badges` declares a project's own badges by name. GitLab's placeholders work in both URLs, so one
208
+ entry fits every project in the baseline:
209
+
210
+ ```json
211
+ "badges": [
212
+ {
213
+ "name": "Pipeline",
214
+ "link_url": "https://gitlab.example.com/%{project_path}/-/pipelines",
215
+ "image_url": "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg"
216
+ }
217
+ ]
218
+ ```
219
+
220
+ A new badge needs both URLs; `plan` reports the project as failed if one is missing.
221
+
222
+ Badges inherited from a parent group are ignored, because they belong to the group. A badge with no
223
+ name is left out of an export, since a baseline matches badges by name. If it is still on a project,
224
+ `plan` shows it as `(unnamed badge <id>)`, and turning on `prune` removes it.
225
+
226
+ If two badges on a project share a name, only the last one GitLab lists is compared.
227
+
166
228
  ## CI/CD variables are reported, not written
167
229
 
168
230
  The config can declare which variables must exist and what flags they carry. `plan` reports the ones
@@ -68,7 +68,7 @@
68
68
  "properties": {
69
69
  "settings": {
70
70
  "type": "object",
71
- "description": "Attributes for PUT /projects/:id — merge method, CI config path, build timeout, and the rest. Names are GitLab's own; only what you declare is compared."
71
+ "description": "Attributes for PUT /projects/:id — merge method, CI config path, build timeout, feature access levels, and the rest. Names are GitLab's own; only what you declare is compared."
72
72
  },
73
73
  "protectedBranches": {
74
74
  "$ref": "#/$defs/section",
@@ -90,6 +90,10 @@
90
90
  "type": "object",
91
91
  "description": "Push rules (Premium/Ultimate)."
92
92
  },
93
+ "badges": {
94
+ "$ref": "#/$defs/section",
95
+ "description": "The project's own badges, keyed by name. link_url and image_url are required for a new badge and accept GitLab's placeholders, such as %{project_path}. Badges inherited from a group are ignored."
96
+ },
93
97
  "variables": {
94
98
  "$ref": "#/$defs/section",
95
99
  "description": "CI/CD variable metadata, keyed by key + environment_scope. Reported only, never written: creating or updating a variable requires its value, and this file holds none."
@@ -986,6 +986,7 @@
986
986
  "approvals",
987
987
  "approvalRules",
988
988
  "pushRules",
989
+ "badges",
989
990
  "variables"
990
991
  ],
991
992
  "type": "option"
@@ -3546,5 +3547,5 @@
3546
3547
  ]
3547
3548
  }
3548
3549
  },
3549
- "version": "0.9.0"
3550
+ "version": "0.11.0"
3550
3551
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-gitlab",
3
3
  "description": "Command-line interface for working with GitLab",
4
- "version": "0.9.0",
4
+ "version": "0.11.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-gitlab",
7
7
  "bugs": "https://github.com/SimplySF/simply-gitlab/issues",
@@ -93,7 +93,7 @@
93
93
  },
94
94
  "dependencies": {
95
95
  "@oclif/core": "^4.11.2",
96
- "@simplysf/simply-gitlab-core": "^0.8.0"
96
+ "@simplysf/simply-gitlab-core": "^0.10.0"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@oclif/plugin-command-snapshot": "^5.4.0",
@@ -248,5 +248,5 @@
248
248
  "service": true
249
249
  }
250
250
  },
251
- "gitHead": "fae77a07bb11a4f17afe3ff00a216c3ac100e308"
251
+ "gitHead": "c4ed406af1c5f63fb4343fe32f9caff05135f2df"
252
252
  }