@simplysf/simply-gitlab 0.10.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
@@ -143,7 +143,7 @@ guarantee rather than an approximation. A second run against a converged project
143
143
  at all.
144
144
 
145
145
  Sections are applied in a fixed order: settings, protected branches, protected tags, approval
146
- 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`
147
147
  needs `main` protected before it can reference it.
148
148
 
149
149
  One project failing does not abandon the other forty-nine. There is no transaction across GitLab
@@ -165,7 +165,7 @@ where it stopped, and `plan` afterwards shows what is left.
165
165
  }
166
166
  ```
167
167
 
168
- 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`
169
169
  for variables — so an override adjusts one entry rather than restating the array. The rule above
170
170
  changes one number and inherits the usernames from the baseline.
171
171
 
@@ -202,6 +202,29 @@ over time:
202
202
  simply gitlab config plan --config ./baseline.json --json | jq '.summary'
203
203
  ```
204
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
+
205
228
  ## CI/CD variables are reported, not written
206
229
 
207
230
  The config can declare which variables must exist and what flags they carry. `plan` reports the ones
@@ -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."