@simplysf/simply-cicd 0.27.0 → 0.28.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 +186 -35
- package/lib/commands/simply/cicd/happy-soup/release/create.d.ts +28 -0
- package/lib/commands/simply/cicd/happy-soup/release/create.js +114 -0
- package/lib/commands/simply/cicd/happy-soup/release/create.js.map +1 -0
- package/lib/commands/simply/cicd/happy-soup/release/stage.d.ts +37 -0
- package/lib/commands/simply/cicd/happy-soup/release/stage.js +111 -0
- package/lib/commands/simply/cicd/happy-soup/release/stage.js.map +1 -0
- package/lib/common/happySoup/flags.d.ts +27 -0
- package/lib/common/happySoup/flags.js +57 -0
- package/lib/common/happySoup/flags.js.map +1 -0
- package/messages/simply.cicd.happy-soup.md +39 -0
- package/messages/simply.cicd.happy-soup.release.create.md +65 -0
- package/messages/simply.cicd.happy-soup.release.stage.md +75 -0
- package/oclif.manifest.json +496 -1
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -50,6 +50,8 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
|
|
|
50
50
|
- [`sf simply cicd deploy project run-apex-tests`](#sf-simply-cicd-deploy-project-run-apex-tests)
|
|
51
51
|
- [`sf simply cicd deploy project validate`](#sf-simply-cicd-deploy-project-validate)
|
|
52
52
|
- [`sf simply cicd deploy validate`](#sf-simply-cicd-deploy-validate)
|
|
53
|
+
- [`sf simply cicd happy-soup release create`](#sf-simply-cicd-happy-soup-release-create)
|
|
54
|
+
- [`sf simply cicd happy-soup release stage`](#sf-simply-cicd-happy-soup-release-stage)
|
|
53
55
|
- [`sf simply cicd notify build`](#sf-simply-cicd-notify-build)
|
|
54
56
|
- [`sf simply cicd notify happy-soup`](#sf-simply-cicd-notify-happy-soup)
|
|
55
57
|
- [`sf simply cicd notify project`](#sf-simply-cicd-notify-project)
|
|
@@ -93,7 +95,7 @@ EXAMPLES
|
|
|
93
95
|
$ sf simply cicd build check-permission-sets
|
|
94
96
|
```
|
|
95
97
|
|
|
96
|
-
_See code: [lib/commands/simply/cicd/build/check-permission-sets.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
98
|
+
_See code: [lib/commands/simply/cicd/build/check-permission-sets.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/check-permission-sets.js)_
|
|
97
99
|
|
|
98
100
|
## `sf simply cicd build cleanup-scratch-orgs`
|
|
99
101
|
|
|
@@ -124,7 +126,7 @@ EXAMPLES
|
|
|
124
126
|
$ sf simply cicd build cleanup-scratch-orgs --dev-hub my-devhub
|
|
125
127
|
```
|
|
126
128
|
|
|
127
|
-
_See code: [lib/commands/simply/cicd/build/cleanup-scratch-orgs.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
129
|
+
_See code: [lib/commands/simply/cicd/build/cleanup-scratch-orgs.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js)_
|
|
128
130
|
|
|
129
131
|
## `sf simply cicd build create-fallback-tag`
|
|
130
132
|
|
|
@@ -181,7 +183,7 @@ EXAMPLES
|
|
|
181
183
|
$ sf simply cicd build create-fallback-tag --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123
|
|
182
184
|
```
|
|
183
185
|
|
|
184
|
-
_See code: [lib/commands/simply/cicd/build/create-fallback-tag.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
186
|
+
_See code: [lib/commands/simply/cicd/build/create-fallback-tag.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/create-fallback-tag.js)_
|
|
185
187
|
|
|
186
188
|
## `sf simply cicd build create-package-version`
|
|
187
189
|
|
|
@@ -255,7 +257,7 @@ EXAMPLES
|
|
|
255
257
|
$ sf simply cicd build create-package-version --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --packaging-devhub my-packaging-devhub
|
|
256
258
|
```
|
|
257
259
|
|
|
258
|
-
_See code: [lib/commands/simply/cicd/build/create-package-version.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
260
|
+
_See code: [lib/commands/simply/cicd/build/create-package-version.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/create-package-version.js)_
|
|
259
261
|
|
|
260
262
|
## `sf simply cicd build create-scratch`
|
|
261
263
|
|
|
@@ -298,7 +300,7 @@ EXAMPLES
|
|
|
298
300
|
$ sf simply cicd build create-scratch --dev-hub my-devhub
|
|
299
301
|
```
|
|
300
302
|
|
|
301
|
-
_See code: [lib/commands/simply/cicd/build/create-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
303
|
+
_See code: [lib/commands/simply/cicd/build/create-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/create-scratch.js)_
|
|
302
304
|
|
|
303
305
|
## `sf simply cicd build delete-scratch`
|
|
304
306
|
|
|
@@ -338,7 +340,7 @@ EXAMPLES
|
|
|
338
340
|
$ sf simply cicd build delete-scratch --dev-hub my-devhub
|
|
339
341
|
```
|
|
340
342
|
|
|
341
|
-
_See code: [lib/commands/simply/cicd/build/delete-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
343
|
+
_See code: [lib/commands/simply/cicd/build/delete-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/delete-scratch.js)_
|
|
342
344
|
|
|
343
345
|
## `sf simply cicd build determine-package-changes`
|
|
344
346
|
|
|
@@ -372,7 +374,7 @@ EXAMPLES
|
|
|
372
374
|
$ sf simply cicd build determine-package-changes --out changes.env
|
|
373
375
|
```
|
|
374
376
|
|
|
375
|
-
_See code: [lib/commands/simply/cicd/build/determine-package-changes.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
377
|
+
_See code: [lib/commands/simply/cicd/build/determine-package-changes.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/determine-package-changes.js)_
|
|
376
378
|
|
|
377
379
|
## `sf simply cicd build generate-flexipage-diff`
|
|
378
380
|
|
|
@@ -430,7 +432,7 @@ EXAMPLES
|
|
|
430
432
|
$ sf simply cicd build generate-flexipage-diff --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-...
|
|
431
433
|
```
|
|
432
434
|
|
|
433
|
-
_See code: [lib/commands/simply/cicd/build/generate-flexipage-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
435
|
+
_See code: [lib/commands/simply/cicd/build/generate-flexipage-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flexipage-diff.js)_
|
|
434
436
|
|
|
435
437
|
## `sf simply cicd build generate-flow-diff`
|
|
436
438
|
|
|
@@ -488,7 +490,7 @@ EXAMPLES
|
|
|
488
490
|
$ sf simply cicd build generate-flow-diff --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-...
|
|
489
491
|
```
|
|
490
492
|
|
|
491
|
-
_See code: [lib/commands/simply/cicd/build/generate-flow-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
493
|
+
_See code: [lib/commands/simply/cicd/build/generate-flow-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flow-diff.js)_
|
|
492
494
|
|
|
493
495
|
## `sf simply cicd build install-dependencies`
|
|
494
496
|
|
|
@@ -561,7 +563,7 @@ FLAG DESCRIPTIONS
|
|
|
561
563
|
prompt in a pipeline, it is auto-approved.
|
|
562
564
|
```
|
|
563
565
|
|
|
564
|
-
_See code: [lib/commands/simply/cicd/build/install-dependencies.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
566
|
+
_See code: [lib/commands/simply/cicd/build/install-dependencies.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/install-dependencies.js)_
|
|
565
567
|
|
|
566
568
|
## `sf simply cicd build lwc-jest`
|
|
567
569
|
|
|
@@ -601,7 +603,7 @@ EXAMPLES
|
|
|
601
603
|
$ sf simply cicd build lwc-jest --lwc-jest-fail-on-test-failure
|
|
602
604
|
```
|
|
603
605
|
|
|
604
|
-
_See code: [lib/commands/simply/cicd/build/lwc-jest.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
606
|
+
_See code: [lib/commands/simply/cicd/build/lwc-jest.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/lwc-jest.js)_
|
|
605
607
|
|
|
606
608
|
## `sf simply cicd build publish-utam-page-objects`
|
|
607
609
|
|
|
@@ -716,7 +718,7 @@ EXAMPLES
|
|
|
716
718
|
--subscriber-package-version-id 04tXXXXXXXXXXXXXXX --dry-run
|
|
717
719
|
```
|
|
718
720
|
|
|
719
|
-
_See code: [lib/commands/simply/cicd/build/publish-utam-page-objects.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
721
|
+
_See code: [lib/commands/simply/cicd/build/publish-utam-page-objects.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/publish-utam-page-objects.js)_
|
|
720
722
|
|
|
721
723
|
## `sf simply cicd build push-scratch`
|
|
722
724
|
|
|
@@ -758,7 +760,7 @@ EXAMPLES
|
|
|
758
760
|
$ sf simply cicd build push-scratch --jwt-key-file ./server.key
|
|
759
761
|
```
|
|
760
762
|
|
|
761
|
-
_See code: [lib/commands/simply/cicd/build/push-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
763
|
+
_See code: [lib/commands/simply/cicd/build/push-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/push-scratch.js)_
|
|
762
764
|
|
|
763
765
|
## `sf simply cicd build test-scratch`
|
|
764
766
|
|
|
@@ -795,7 +797,7 @@ EXAMPLES
|
|
|
795
797
|
$ sf simply cicd build test-scratch --jwt-key-file ./server.key
|
|
796
798
|
```
|
|
797
799
|
|
|
798
|
-
_See code: [lib/commands/simply/cicd/build/test-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
800
|
+
_See code: [lib/commands/simply/cicd/build/test-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/build/test-scratch.js)_
|
|
799
801
|
|
|
800
802
|
## `sf simply cicd deploy happy-soup deploy-unpackaged`
|
|
801
803
|
|
|
@@ -846,7 +848,7 @@ EXAMPLES
|
|
|
846
848
|
$ sf simply cicd deploy happy-soup deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
847
849
|
```
|
|
848
850
|
|
|
849
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
851
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js)_
|
|
850
852
|
|
|
851
853
|
## `sf simply cicd deploy happy-soup deployment-close-out`
|
|
852
854
|
|
|
@@ -900,7 +902,7 @@ EXAMPLES
|
|
|
900
902
|
$ sf simply cicd deploy happy-soup deployment-close-out --ci-commit-ref-name main --ci-pipeline-id 123 --ci-project-path group/project --project-access-token $PROJECT_ACCESS_TOKEN --deploy-release-date 2026-01-15
|
|
901
903
|
```
|
|
902
904
|
|
|
903
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
905
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js)_
|
|
904
906
|
|
|
905
907
|
## `sf simply cicd deploy happy-soup install-packaged`
|
|
906
908
|
|
|
@@ -960,7 +962,7 @@ FLAG DESCRIPTIONS
|
|
|
960
962
|
prompt in a pipeline, it is auto-approved.
|
|
961
963
|
```
|
|
962
964
|
|
|
963
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
965
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js)_
|
|
964
966
|
|
|
965
967
|
## `sf simply cicd deploy happy-soup post-deploy`
|
|
966
968
|
|
|
@@ -1011,7 +1013,7 @@ EXAMPLES
|
|
|
1011
1013
|
$ sf simply cicd deploy happy-soup post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
1012
1014
|
```
|
|
1013
1015
|
|
|
1014
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1016
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js)_
|
|
1015
1017
|
|
|
1016
1018
|
## `sf simply cicd deploy happy-soup post-destructive`
|
|
1017
1019
|
|
|
@@ -1062,7 +1064,7 @@ EXAMPLES
|
|
|
1062
1064
|
$ sf simply cicd deploy happy-soup post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
1063
1065
|
```
|
|
1064
1066
|
|
|
1065
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1067
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js)_
|
|
1066
1068
|
|
|
1067
1069
|
## `sf simply cicd deploy happy-soup pre-destructive`
|
|
1068
1070
|
|
|
@@ -1113,7 +1115,7 @@ EXAMPLES
|
|
|
1113
1115
|
$ sf simply cicd deploy happy-soup pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
1114
1116
|
```
|
|
1115
1117
|
|
|
1116
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1118
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js)_
|
|
1117
1119
|
|
|
1118
1120
|
## `sf simply cicd deploy happy-soup tag-deployment`
|
|
1119
1121
|
|
|
@@ -1165,7 +1167,7 @@ EXAMPLES
|
|
|
1165
1167
|
$ sf simply cicd deploy happy-soup tag-deployment --alias my-org --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/group/project/-/pipelines/123 --ci-project-path group/project --ci-merge-request-iid 45 --ci-merge-request-project-url https://gitlab.example.com/group/project --project-access-token $PROJECT_ACCESS_TOKEN
|
|
1166
1168
|
```
|
|
1167
1169
|
|
|
1168
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1170
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js)_
|
|
1169
1171
|
|
|
1170
1172
|
## `sf simply cicd deploy happy-soup validate`
|
|
1171
1173
|
|
|
@@ -1203,7 +1205,7 @@ EXAMPLES
|
|
|
1203
1205
|
$ sf simply cicd deploy happy-soup validate --deploy-config-file deployment-configs/uat.json --deploy-rules-file config/deploy-rules.json
|
|
1204
1206
|
```
|
|
1205
1207
|
|
|
1206
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1208
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/validate.js)_
|
|
1207
1209
|
|
|
1208
1210
|
## `sf simply cicd deploy project deploy-unpackaged`
|
|
1209
1211
|
|
|
@@ -1251,7 +1253,7 @@ EXAMPLES
|
|
|
1251
1253
|
$ sf simply cicd deploy project deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1252
1254
|
```
|
|
1253
1255
|
|
|
1254
|
-
_See code: [lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1256
|
+
_See code: [lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js)_
|
|
1255
1257
|
|
|
1256
1258
|
## `sf simply cicd deploy project install-packaged`
|
|
1257
1259
|
|
|
@@ -1315,7 +1317,7 @@ FLAG DESCRIPTIONS
|
|
|
1315
1317
|
prompt in a pipeline, it is auto-approved.
|
|
1316
1318
|
```
|
|
1317
1319
|
|
|
1318
|
-
_See code: [lib/commands/simply/cicd/deploy/project/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1320
|
+
_See code: [lib/commands/simply/cicd/deploy/project/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/install-packaged.js)_
|
|
1319
1321
|
|
|
1320
1322
|
## `sf simply cicd deploy project post-deploy`
|
|
1321
1323
|
|
|
@@ -1363,7 +1365,7 @@ EXAMPLES
|
|
|
1363
1365
|
$ sf simply cicd deploy project post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1364
1366
|
```
|
|
1365
1367
|
|
|
1366
|
-
_See code: [lib/commands/simply/cicd/deploy/project/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1368
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-deploy.js)_
|
|
1367
1369
|
|
|
1368
1370
|
## `sf simply cicd deploy project post-destructive`
|
|
1369
1371
|
|
|
@@ -1411,7 +1413,7 @@ EXAMPLES
|
|
|
1411
1413
|
$ sf simply cicd deploy project post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1412
1414
|
```
|
|
1413
1415
|
|
|
1414
|
-
_See code: [lib/commands/simply/cicd/deploy/project/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1416
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-destructive.js)_
|
|
1415
1417
|
|
|
1416
1418
|
## `sf simply cicd deploy project pre-destructive`
|
|
1417
1419
|
|
|
@@ -1459,7 +1461,7 @@ EXAMPLES
|
|
|
1459
1461
|
$ sf simply cicd deploy project pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1460
1462
|
```
|
|
1461
1463
|
|
|
1462
|
-
_See code: [lib/commands/simply/cicd/deploy/project/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1464
|
+
_See code: [lib/commands/simply/cicd/deploy/project/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/pre-destructive.js)_
|
|
1463
1465
|
|
|
1464
1466
|
## `sf simply cicd deploy project run-apex-tests`
|
|
1465
1467
|
|
|
@@ -1506,7 +1508,7 @@ EXAMPLES
|
|
|
1506
1508
|
$ sf simply cicd deploy project run-apex-tests --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1507
1509
|
```
|
|
1508
1510
|
|
|
1509
|
-
_See code: [lib/commands/simply/cicd/deploy/project/run-apex-tests.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1511
|
+
_See code: [lib/commands/simply/cicd/deploy/project/run-apex-tests.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/run-apex-tests.js)_
|
|
1510
1512
|
|
|
1511
1513
|
## `sf simply cicd deploy project validate`
|
|
1512
1514
|
|
|
@@ -1541,7 +1543,7 @@ EXAMPLES
|
|
|
1541
1543
|
$ sf simply cicd deploy project validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1542
1544
|
```
|
|
1543
1545
|
|
|
1544
|
-
_See code: [lib/commands/simply/cicd/deploy/project/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1546
|
+
_See code: [lib/commands/simply/cicd/deploy/project/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/validate.js)_
|
|
1545
1547
|
|
|
1546
1548
|
## `sf simply cicd deploy validate`
|
|
1547
1549
|
|
|
@@ -1575,7 +1577,156 @@ EXAMPLES
|
|
|
1575
1577
|
$ sf simply cicd deploy validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1576
1578
|
```
|
|
1577
1579
|
|
|
1578
|
-
_See code: [lib/commands/simply/cicd/deploy/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1580
|
+
_See code: [lib/commands/simply/cicd/deploy/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/deploy/validate.js)_
|
|
1581
|
+
|
|
1582
|
+
## `sf simply cicd happy-soup release create`
|
|
1583
|
+
|
|
1584
|
+
Open a dated happy-soup release: create release/YYYY-MM-DD with its deployment files, push it, and open a draft merge request.
|
|
1585
|
+
|
|
1586
|
+
```
|
|
1587
|
+
USAGE
|
|
1588
|
+
$ sf simply cicd happy-soup release create [--json] [--flags-dir <value>] [-d <value>] [-c <value>] [-b <value>] [--remote <value>]
|
|
1589
|
+
[--dry-run] [--no-prompt] [--message <value>] [--no-push] [--no-merge-request] [--vcs-provider github|gitlab]
|
|
1590
|
+
[--vcs-host <value>] [--vcs-project-id <value>] [--vcs-token <value>]
|
|
1591
|
+
|
|
1592
|
+
FLAGS
|
|
1593
|
+
-b, --base-branch=<value> Branch to start from. Defaults to productionBranch in the release configuration, which
|
|
1594
|
+
defaults to environment/production.
|
|
1595
|
+
-c, --config=<value> Path to the release configuration file. Defaults to config/release.json or release.json,
|
|
1596
|
+
searched for from the current directory up to the repository root.
|
|
1597
|
+
-d, --date=<value> Release date, in YYYY-MM-DD form. Asked for when omitted in a terminal.
|
|
1598
|
+
--dry-run Print the plan without changing anything.
|
|
1599
|
+
--message=<value> Commit message template for the deployment files, with an optional {DATE} placeholder.
|
|
1600
|
+
Defaults to "chore: set up release {DATE}".
|
|
1601
|
+
--no-merge-request Push the branch without opening a draft merge request.
|
|
1602
|
+
--no-prompt Don't ask for anything. Values that would be asked for must then be passed as flags.
|
|
1603
|
+
--no-push Create and commit the branch locally only. Implies --no-merge-request.
|
|
1604
|
+
--remote=<value> [default: origin] Remote to fetch from and push to.
|
|
1605
|
+
--vcs-host=<value> VCS hostname, for a self-hosted instance. Defaults to SIMPLY_VCS_HOST, then vcs.host in
|
|
1606
|
+
.sfdevrc.json.
|
|
1607
|
+
--vcs-project-id=<value> GitLab project ID or GitHub owner/repo. Defaults to SIMPLY_VCS_PROJECT_ID, then
|
|
1608
|
+
vcs.projectId in .sfdevrc.json.
|
|
1609
|
+
--vcs-provider=<option> VCS platform for the merge request. Defaults to SIMPLY_VCS_PROVIDER, then vcs.provider
|
|
1610
|
+
in .sfdevrc.json, then gitlab.
|
|
1611
|
+
<options: github|gitlab>
|
|
1612
|
+
--vcs-token=<value> [env: SIMPLY_VCS_TOKEN] VCS API token for the merge request.
|
|
1613
|
+
|
|
1614
|
+
GLOBAL FLAGS
|
|
1615
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1616
|
+
--json Format output as json.
|
|
1617
|
+
|
|
1618
|
+
DESCRIPTION
|
|
1619
|
+
Open a dated happy-soup release: create release/YYYY-MM-DD with its deployment files, push it, and open a draft merge
|
|
1620
|
+
request.
|
|
1621
|
+
|
|
1622
|
+
Run this from a local clone of a happy-soup repository. It creates `release/<date>` from the remote's copy of the
|
|
1623
|
+
production branch (`productionBranch` in `config/release.json`, by default `environment/production`), without checking
|
|
1624
|
+
out or pulling any other branch, and checks it out.
|
|
1625
|
+
|
|
1626
|
+
It then copies the deployment steps template to `deployment-steps/<date>.md` and the deployment configs template to
|
|
1627
|
+
`deployment-configs/<date>.json`, which is the file the `simply cicd deploy happy-soup` stages use for this branch,
|
|
1628
|
+
and commits both in one commit. The templates are read from the base branch, from the paths `deploymentStepsTemplate`
|
|
1629
|
+
and `deploymentConfigsTemplate` in `config/release.json` (by default `xdocs/deployment-steps-template.md` and
|
|
1630
|
+
`xdocs/deployment-configs-template.json`). A template that doesn't exist is skipped and reported. A deployment file
|
|
1631
|
+
that already exists on the base branch is left alone.
|
|
1632
|
+
|
|
1633
|
+
Finally, it pushes the branch and opens a draft merge request back into the base branch, unless `--no-push` or
|
|
1634
|
+
`--no-merge-request`. The merge request needs a token, from `--vcs-token` or `SIMPLY_VCS_TOKEN`, and a project ID,
|
|
1635
|
+
from `--vcs-project-id`, `SIMPLY_VCS_PROJECT_ID`, or `vcs.projectId` in `.sfdevrc.json`. These are checked before
|
|
1636
|
+
anything changes.
|
|
1637
|
+
|
|
1638
|
+
A working tree with uncommitted changes is refused. Nothing is ever force-checked-out, reset, or force-pushed, and
|
|
1639
|
+
your repository's commit hooks always run. If a hook rejects the commit, nothing is pushed and the files stay staged:
|
|
1640
|
+
commit them, push the branch, and run this command again to open the merge request.
|
|
1641
|
+
|
|
1642
|
+
If the branch is already on the remote, nothing is created: it is checked out (a local copy that is only behind is
|
|
1643
|
+
fast-forwarded), and the merge request is opened if it's missing.
|
|
1644
|
+
|
|
1645
|
+
EXAMPLES
|
|
1646
|
+
Open the release for 19 October 2026:
|
|
1647
|
+
|
|
1648
|
+
$ sf simply cicd happy-soup release create --date 2026-10-19
|
|
1649
|
+
|
|
1650
|
+
See what would happen, without changing anything:
|
|
1651
|
+
|
|
1652
|
+
$ sf simply cicd happy-soup release create --date 2026-10-19 --dry-run
|
|
1653
|
+
|
|
1654
|
+
Ask for the date:
|
|
1655
|
+
|
|
1656
|
+
$ sf simply cicd happy-soup release create
|
|
1657
|
+
|
|
1658
|
+
Create the branch and its files, but push and open the merge request yourself:
|
|
1659
|
+
|
|
1660
|
+
$ sf simply cicd happy-soup release create --date 2026-10-19 --no-push
|
|
1661
|
+
|
|
1662
|
+
Use a commit message your repository's rules accept:
|
|
1663
|
+
|
|
1664
|
+
$ sf simply cicd happy-soup release create --date 2026-10-19 --message "chore: PROJ-123 set up release {DATE}"
|
|
1665
|
+
```
|
|
1666
|
+
|
|
1667
|
+
_See code: [lib/commands/simply/cicd/happy-soup/release/create.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/happy-soup/release/create.js)_
|
|
1668
|
+
|
|
1669
|
+
## `sf simply cicd happy-soup release stage`
|
|
1670
|
+
|
|
1671
|
+
Start a staging branch, <team>/<app>/<name>, for work headed into a happy-soup release.
|
|
1672
|
+
|
|
1673
|
+
```
|
|
1674
|
+
USAGE
|
|
1675
|
+
$ sf simply cicd happy-soup release stage [--json] [--flags-dir <value>] [--team <value>] [-a <value>] [-n <value>] [-c <value>] [-b
|
|
1676
|
+
<value>] [--remote <value>] [--dry-run] [--no-prompt]
|
|
1677
|
+
|
|
1678
|
+
FLAGS
|
|
1679
|
+
-a, --app=<value> Application, the second part of the branch name. Asked for when omitted in a terminal.
|
|
1680
|
+
-b, --base-branch=<value> Branch to start from. Defaults to productionBranch in the release configuration, which
|
|
1681
|
+
defaults to environment/production.
|
|
1682
|
+
-c, --config=<value> Path to the release configuration file. Defaults to config/release.json or release.json,
|
|
1683
|
+
searched for from the current directory up to the repository root.
|
|
1684
|
+
-n, --name=<value> Release name or ticket, the last part of the branch name, such as PROJ-1058. Asked for when
|
|
1685
|
+
omitted in a terminal.
|
|
1686
|
+
--dry-run Print the plan without changing anything.
|
|
1687
|
+
--no-prompt Don't ask for anything. Values that would be asked for must then be passed as flags.
|
|
1688
|
+
--remote=<value> [default: origin] Remote to fetch from and push to.
|
|
1689
|
+
--team=<value> Team, the first part of the branch name. Asked for when omitted in a terminal.
|
|
1690
|
+
|
|
1691
|
+
GLOBAL FLAGS
|
|
1692
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
1693
|
+
--json Format output as json.
|
|
1694
|
+
|
|
1695
|
+
DESCRIPTION
|
|
1696
|
+
Start a staging branch, <team>/<app>/<name>, for work headed into a happy-soup release.
|
|
1697
|
+
|
|
1698
|
+
Run this from a local clone of a happy-soup repository. It creates `<team>/<app>/<name>`, such as
|
|
1699
|
+
`platform/core/PROJ-1058`, from the remote's copy of the base branch, without checking out or pulling any other
|
|
1700
|
+
branch, and checks it out. The branch isn't pushed.
|
|
1701
|
+
|
|
1702
|
+
In a terminal, anything you leave out is asked for. The teams, and each team's applications, come from
|
|
1703
|
+
`config/release.json`. A team with no applications of its own offers the file's top-level `applications`. Each list
|
|
1704
|
+
ends with "Other", for a name that isn't configured. The base branches offered are the remote's `environment/*` and
|
|
1705
|
+
`release/*` branches, with `productionBranch` first. Without prompts, `--team`, `--app`, and `--name` are required,
|
|
1706
|
+
and the base defaults to `productionBranch` (by default `environment/production`).
|
|
1707
|
+
|
|
1708
|
+
`--team` matches a configured team ignoring case. Each part of the name must be a single valid git branch component:
|
|
1709
|
+
no `/`, spaces, `..`, or the other characters git refuses.
|
|
1710
|
+
|
|
1711
|
+
A working tree with uncommitted changes is refused. If the branch already exists, on the remote or only locally, it is
|
|
1712
|
+
checked out instead of created.
|
|
1713
|
+
|
|
1714
|
+
EXAMPLES
|
|
1715
|
+
Start platform/core/PROJ-1058 from the production branch:
|
|
1716
|
+
|
|
1717
|
+
$ sf simply cicd happy-soup release stage --team platform --app core --name PROJ-1058
|
|
1718
|
+
|
|
1719
|
+
Stage from a release branch instead:
|
|
1720
|
+
|
|
1721
|
+
$ sf simply cicd happy-soup release stage --team platform --app core --name PROJ-1058 --base-branch \
|
|
1722
|
+
release/2026-10-19
|
|
1723
|
+
|
|
1724
|
+
Pick the team, application, and base branch from lists:
|
|
1725
|
+
|
|
1726
|
+
$ sf simply cicd happy-soup release stage
|
|
1727
|
+
```
|
|
1728
|
+
|
|
1729
|
+
_See code: [lib/commands/simply/cicd/happy-soup/release/stage.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/happy-soup/release/stage.js)_
|
|
1579
1730
|
|
|
1580
1731
|
## `sf simply cicd notify build`
|
|
1581
1732
|
|
|
@@ -1651,7 +1802,7 @@ EXAMPLES
|
|
|
1651
1802
|
--teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1652
1803
|
```
|
|
1653
1804
|
|
|
1654
|
-
_See code: [lib/commands/simply/cicd/notify/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1805
|
+
_See code: [lib/commands/simply/cicd/notify/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/notify/build.js)_
|
|
1655
1806
|
|
|
1656
1807
|
## `sf simply cicd notify happy-soup`
|
|
1657
1808
|
|
|
@@ -1724,7 +1875,7 @@ EXAMPLES
|
|
|
1724
1875
|
$ sf simply cicd notify happy-soup --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1725
1876
|
```
|
|
1726
1877
|
|
|
1727
|
-
_See code: [lib/commands/simply/cicd/notify/happy-soup.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1878
|
+
_See code: [lib/commands/simply/cicd/notify/happy-soup.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/notify/happy-soup.js)_
|
|
1728
1879
|
|
|
1729
1880
|
## `sf simply cicd notify project`
|
|
1730
1881
|
|
|
@@ -1798,7 +1949,7 @@ EXAMPLES
|
|
|
1798
1949
|
$ sf simply cicd notify project --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1799
1950
|
```
|
|
1800
1951
|
|
|
1801
|
-
_See code: [lib/commands/simply/cicd/notify/project.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1952
|
+
_See code: [lib/commands/simply/cicd/notify/project.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/notify/project.js)_
|
|
1802
1953
|
|
|
1803
1954
|
## `sf simply cicd notify teams`
|
|
1804
1955
|
|
|
@@ -1830,7 +1981,7 @@ EXAMPLES
|
|
|
1830
1981
|
$ sf simply cicd notify teams --payload '{"text":"Deployment complete"}' --webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1831
1982
|
```
|
|
1832
1983
|
|
|
1833
|
-
_See code: [lib/commands/simply/cicd/notify/teams.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
1984
|
+
_See code: [lib/commands/simply/cicd/notify/teams.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/notify/teams.js)_
|
|
1834
1985
|
|
|
1835
1986
|
## `sf simply cicd sfdx-dependabot`
|
|
1836
1987
|
|
|
@@ -1913,7 +2064,7 @@ FLAG DESCRIPTIONS
|
|
|
1913
2064
|
Defaults to the selected provider's public instance if not provided.
|
|
1914
2065
|
```
|
|
1915
2066
|
|
|
1916
|
-
_See code: [lib/commands/simply/cicd/sfdx-dependabot.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.
|
|
2067
|
+
_See code: [lib/commands/simply/cicd/sfdx-dependabot.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.28.0/packages/simply-cicd/lib/commands/simply/cicd/sfdx-dependabot.js)_
|
|
1917
2068
|
<!-- commandsstop -->
|
|
1918
2069
|
|
|
1919
2070
|
## License
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { type CreateReleaseBranchResult } from '@simplysf/simply-cicd-core';
|
|
3
|
+
export type HappySoupReleaseCreateResult = CreateReleaseBranchResult;
|
|
4
|
+
/** Opens a dated happy-soup release: branch, deployment files from templates, push, and a draft merge request. */
|
|
5
|
+
export default class HappySoupReleaseCreate extends SfCommand<HappySoupReleaseCreateResult> {
|
|
6
|
+
static readonly summary: string;
|
|
7
|
+
static readonly description: string;
|
|
8
|
+
static readonly examples: string[];
|
|
9
|
+
static readonly enableJsonFlag = true;
|
|
10
|
+
static readonly flags: {
|
|
11
|
+
'vcs-provider': import("@oclif/core/interfaces").OptionFlag<"gitlab" | "github" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'vcs-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'vcs-project-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'vcs-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
message: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
'no-push': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
'no-merge-request': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'base-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
remote: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
|
+
'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
date: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
};
|
|
26
|
+
run(): Promise<HappySoupReleaseCreateResult>;
|
|
27
|
+
protected promptForDate(): Promise<string>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { assertReleaseDate, createReleaseBranch, resolveHappySoupVcs, } from '@simplysf/simply-cicd-core';
|
|
19
|
+
import { text } from '@simplysf/simply-plugin-kit';
|
|
20
|
+
import { canPrompt, mergeRequestVcsFlags, releaseConfigFlags } from '../../../../../common/happySoup/flags.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
const messages = Messages.loadMessages('@simplysf/simply-cicd', 'simply.cicd.happy-soup.release.create');
|
|
23
|
+
/** Opens a dated happy-soup release: branch, deployment files from templates, push, and a draft merge request. */
|
|
24
|
+
export default class HappySoupReleaseCreate extends SfCommand {
|
|
25
|
+
static summary = messages.getMessage('summary');
|
|
26
|
+
static description = messages.getMessage('description');
|
|
27
|
+
static examples = messages.getMessages('examples');
|
|
28
|
+
static enableJsonFlag = true;
|
|
29
|
+
static flags = {
|
|
30
|
+
...SfCommand.baseFlags,
|
|
31
|
+
date: Flags.string({ char: 'd', summary: messages.getMessage('flags.date.summary') }),
|
|
32
|
+
...releaseConfigFlags,
|
|
33
|
+
message: Flags.string({ summary: messages.getMessage('flags.message.summary') }),
|
|
34
|
+
'no-push': Flags.boolean({ summary: messages.getMessage('flags.no-push.summary'), default: false }),
|
|
35
|
+
'no-merge-request': Flags.boolean({
|
|
36
|
+
summary: messages.getMessage('flags.no-merge-request.summary'),
|
|
37
|
+
default: false,
|
|
38
|
+
}),
|
|
39
|
+
...mergeRequestVcsFlags,
|
|
40
|
+
};
|
|
41
|
+
async run() {
|
|
42
|
+
const { flags } = await this.parse(HappySoupReleaseCreate);
|
|
43
|
+
const interactive = canPrompt(flags['no-prompt'], this.jsonEnabled());
|
|
44
|
+
const date = flags.date ?? (interactive ? await this.promptForDate() : undefined);
|
|
45
|
+
if (!date) {
|
|
46
|
+
this.error(messages.getMessage('error.dateRequired'));
|
|
47
|
+
}
|
|
48
|
+
const push = !flags['no-push'];
|
|
49
|
+
const mergeRequest = push && !flags['no-merge-request'];
|
|
50
|
+
const vcs = mergeRequest
|
|
51
|
+
? resolveHappySoupVcs({
|
|
52
|
+
provider: flags['vcs-provider'],
|
|
53
|
+
host: flags['vcs-host'],
|
|
54
|
+
projectId: flags['vcs-project-id'],
|
|
55
|
+
token: flags['vcs-token'],
|
|
56
|
+
warn: (message) => this.warn(message),
|
|
57
|
+
})
|
|
58
|
+
: undefined;
|
|
59
|
+
const result = await createReleaseBranch({
|
|
60
|
+
date,
|
|
61
|
+
baseBranch: flags['base-branch'],
|
|
62
|
+
configPath: flags.config,
|
|
63
|
+
remote: flags.remote,
|
|
64
|
+
message: flags.message,
|
|
65
|
+
push,
|
|
66
|
+
mergeRequest,
|
|
67
|
+
vcs,
|
|
68
|
+
dryRun: flags['dry-run'],
|
|
69
|
+
});
|
|
70
|
+
for (const warning of result.warnings) {
|
|
71
|
+
this.warn(warning);
|
|
72
|
+
}
|
|
73
|
+
this.table({
|
|
74
|
+
title: messages.getMessage('tableTitle'),
|
|
75
|
+
data: [
|
|
76
|
+
{ field: 'Branch', value: result.branch },
|
|
77
|
+
{ field: 'Base', value: result.base },
|
|
78
|
+
{ field: 'Status', value: result.status },
|
|
79
|
+
...(result.commit ? [{ field: 'Commit', value: result.commit }] : []),
|
|
80
|
+
{ field: 'Files', value: result.files.join(', ') || '(none)' },
|
|
81
|
+
...(result.skippedTemplates.length > 0
|
|
82
|
+
? [{ field: 'Missing templates', value: result.skippedTemplates.join(', ') }]
|
|
83
|
+
: []),
|
|
84
|
+
{ field: 'Pushed', value: result.pushed ? 'Yes' : 'No' },
|
|
85
|
+
...(result.mergeRequest
|
|
86
|
+
? [
|
|
87
|
+
{
|
|
88
|
+
field: 'Merge request',
|
|
89
|
+
value: [result.mergeRequest.status, result.mergeRequest.webUrl ?? result.mergeRequest.title].join(': '),
|
|
90
|
+
},
|
|
91
|
+
]
|
|
92
|
+
: []),
|
|
93
|
+
],
|
|
94
|
+
});
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
// eslint-disable-next-line class-methods-use-this -- kept as a method so tests can stub the prompt
|
|
98
|
+
async promptForDate() {
|
|
99
|
+
return text({
|
|
100
|
+
message: messages.getMessage('prompt.date'),
|
|
101
|
+
placeholder: new Date().toISOString().slice(0, 10),
|
|
102
|
+
validate: (value) => {
|
|
103
|
+
try {
|
|
104
|
+
assertReleaseDate(value);
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
return error instanceof Error ? error.message : String(error);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/cicd/happy-soup/release/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE/G,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE,uCAAuC,CAAC,CAAC;AAIzG,kHAAkH;AAClH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAuC;IAClF,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CA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