@simplysf/simply-cicd 0.3.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.
Files changed (274) hide show
  1. package/README.md +1621 -0
  2. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.d.ts +21 -0
  3. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js +47 -0
  4. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js.map +1 -0
  5. package/lib/commands/simply/cicd/build/create-fallback-tag.d.ts +25 -0
  6. package/lib/commands/simply/cicd/build/create-fallback-tag.js +63 -0
  7. package/lib/commands/simply/cicd/build/create-fallback-tag.js.map +1 -0
  8. package/lib/commands/simply/cicd/build/create-package-version.d.ts +32 -0
  9. package/lib/commands/simply/cicd/build/create-package-version.js +110 -0
  10. package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -0
  11. package/lib/commands/simply/cicd/build/create-scratch.d.ts +25 -0
  12. package/lib/commands/simply/cicd/build/create-scratch.js +63 -0
  13. package/lib/commands/simply/cicd/build/create-scratch.js.map +1 -0
  14. package/lib/commands/simply/cicd/build/delete-scratch.d.ts +21 -0
  15. package/lib/commands/simply/cicd/build/delete-scratch.js +53 -0
  16. package/lib/commands/simply/cicd/build/delete-scratch.js.map +1 -0
  17. package/lib/commands/simply/cicd/build/determine-package-changes.d.ts +17 -0
  18. package/lib/commands/simply/cicd/build/determine-package-changes.js +44 -0
  19. package/lib/commands/simply/cicd/build/determine-package-changes.js.map +1 -0
  20. package/lib/commands/simply/cicd/build/generate-flexipage-diff.d.ts +20 -0
  21. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js +47 -0
  22. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js.map +1 -0
  23. package/lib/commands/simply/cicd/build/generate-flow-diff.d.ts +20 -0
  24. package/lib/commands/simply/cicd/build/generate-flow-diff.js +47 -0
  25. package/lib/commands/simply/cicd/build/generate-flow-diff.js.map +1 -0
  26. package/lib/commands/simply/cicd/build/install-dependencies.d.ts +18 -0
  27. package/lib/commands/simply/cicd/build/install-dependencies.js +58 -0
  28. package/lib/commands/simply/cicd/build/install-dependencies.js.map +1 -0
  29. package/lib/commands/simply/cicd/build/lwc-jest.d.ts +14 -0
  30. package/lib/commands/simply/cicd/build/lwc-jest.js +37 -0
  31. package/lib/commands/simply/cicd/build/lwc-jest.js.map +1 -0
  32. package/lib/commands/simply/cicd/build/push-scratch.d.ts +19 -0
  33. package/lib/commands/simply/cicd/build/push-scratch.js +57 -0
  34. package/lib/commands/simply/cicd/build/push-scratch.js.map +1 -0
  35. package/lib/commands/simply/cicd/build/test-scratch.d.ts +18 -0
  36. package/lib/commands/simply/cicd/build/test-scratch.js +58 -0
  37. package/lib/commands/simply/cicd/build/test-scratch.js.map +1 -0
  38. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.d.ts +29 -0
  39. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js +36 -0
  40. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js.map +1 -0
  41. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.d.ts +23 -0
  42. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js +82 -0
  43. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js.map +1 -0
  44. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +21 -0
  45. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +57 -0
  46. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -0
  47. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.d.ts +29 -0
  48. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js +36 -0
  49. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js.map +1 -0
  50. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.d.ts +29 -0
  51. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js +36 -0
  52. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js.map +1 -0
  53. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.d.ts +29 -0
  54. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js +36 -0
  55. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js.map +1 -0
  56. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.d.ts +28 -0
  57. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js +89 -0
  58. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js.map +1 -0
  59. package/lib/commands/simply/cicd/deploy/happy-soup/validate.d.ts +15 -0
  60. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js +49 -0
  61. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js.map +1 -0
  62. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.d.ts +28 -0
  63. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js +36 -0
  64. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js.map +1 -0
  65. package/lib/commands/simply/cicd/deploy/project/install-packaged.d.ts +24 -0
  66. package/lib/commands/simply/cicd/deploy/project/install-packaged.js +69 -0
  67. package/lib/commands/simply/cicd/deploy/project/install-packaged.js.map +1 -0
  68. package/lib/commands/simply/cicd/deploy/project/post-deploy.d.ts +28 -0
  69. package/lib/commands/simply/cicd/deploy/project/post-deploy.js +36 -0
  70. package/lib/commands/simply/cicd/deploy/project/post-deploy.js.map +1 -0
  71. package/lib/commands/simply/cicd/deploy/project/post-destructive.d.ts +28 -0
  72. package/lib/commands/simply/cicd/deploy/project/post-destructive.js +36 -0
  73. package/lib/commands/simply/cicd/deploy/project/post-destructive.js.map +1 -0
  74. package/lib/commands/simply/cicd/deploy/project/pre-destructive.d.ts +28 -0
  75. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js +36 -0
  76. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js.map +1 -0
  77. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.d.ts +26 -0
  78. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js +66 -0
  79. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js.map +1 -0
  80. package/lib/commands/simply/cicd/deploy/project/validate.d.ts +14 -0
  81. package/lib/commands/simply/cicd/deploy/project/validate.js +51 -0
  82. package/lib/commands/simply/cicd/deploy/project/validate.js.map +1 -0
  83. package/lib/commands/simply/cicd/deploy/validate.d.ts +14 -0
  84. package/lib/commands/simply/cicd/deploy/validate.js +50 -0
  85. package/lib/commands/simply/cicd/deploy/validate.js.map +1 -0
  86. package/lib/commands/simply/cicd/notify/happy-soup.d.ts +32 -0
  87. package/lib/commands/simply/cicd/notify/happy-soup.js +193 -0
  88. package/lib/commands/simply/cicd/notify/happy-soup.js.map +1 -0
  89. package/lib/commands/simply/cicd/notify/project.d.ts +51 -0
  90. package/lib/commands/simply/cicd/notify/project.js +376 -0
  91. package/lib/commands/simply/cicd/notify/project.js.map +1 -0
  92. package/lib/commands/simply/cicd/notify/teams.d.ts +18 -0
  93. package/lib/commands/simply/cicd/notify/teams.js +77 -0
  94. package/lib/commands/simply/cicd/notify/teams.js.map +1 -0
  95. package/lib/commands/simply/cicd/sfdx-dependabot.d.ts +84 -0
  96. package/lib/commands/simply/cicd/sfdx-dependabot.js +469 -0
  97. package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -0
  98. package/lib/common/build/cleanupScratchOrgs.d.ts +7 -0
  99. package/lib/common/build/cleanupScratchOrgs.js +91 -0
  100. package/lib/common/build/cleanupScratchOrgs.js.map +1 -0
  101. package/lib/common/build/createFallbackTag.d.ts +24 -0
  102. package/lib/common/build/createFallbackTag.js +96 -0
  103. package/lib/common/build/createFallbackTag.js.map +1 -0
  104. package/lib/common/build/createPackageVersion.d.ts +27 -0
  105. package/lib/common/build/createPackageVersion.js +164 -0
  106. package/lib/common/build/createPackageVersion.js.map +1 -0
  107. package/lib/common/build/createScratchOrg.d.ts +14 -0
  108. package/lib/common/build/createScratchOrg.js +191 -0
  109. package/lib/common/build/createScratchOrg.js.map +1 -0
  110. package/lib/common/build/deleteScratchOrg.d.ts +12 -0
  111. package/lib/common/build/deleteScratchOrg.js +58 -0
  112. package/lib/common/build/deleteScratchOrg.js.map +1 -0
  113. package/lib/common/build/determinePackageChanges.d.ts +13 -0
  114. package/lib/common/build/determinePackageChanges.js +98 -0
  115. package/lib/common/build/determinePackageChanges.js.map +1 -0
  116. package/lib/common/build/devHubs.d.ts +8 -0
  117. package/lib/common/build/devHubs.js +30 -0
  118. package/lib/common/build/devHubs.js.map +1 -0
  119. package/lib/common/build/flags.d.ts +36 -0
  120. package/lib/common/build/flags.js +120 -0
  121. package/lib/common/build/flags.js.map +1 -0
  122. package/lib/common/build/flexipageDelta.d.ts +31 -0
  123. package/lib/common/build/flexipageDelta.js +92 -0
  124. package/lib/common/build/flexipageDelta.js.map +1 -0
  125. package/lib/common/build/flowDelta.d.ts +30 -0
  126. package/lib/common/build/flowDelta.js +91 -0
  127. package/lib/common/build/flowDelta.js.map +1 -0
  128. package/lib/common/build/installDependencies.d.ts +7 -0
  129. package/lib/common/build/installDependencies.js +36 -0
  130. package/lib/common/build/installDependencies.js.map +1 -0
  131. package/lib/common/build/lwcJest.d.ts +9 -0
  132. package/lib/common/build/lwcJest.js +36 -0
  133. package/lib/common/build/lwcJest.js.map +1 -0
  134. package/lib/common/build/pushScratch.d.ts +8 -0
  135. package/lib/common/build/pushScratch.js +63 -0
  136. package/lib/common/build/pushScratch.js.map +1 -0
  137. package/lib/common/build/scratchOrgInfo.d.ts +10 -0
  138. package/lib/common/build/scratchOrgInfo.js +21 -0
  139. package/lib/common/build/scratchOrgInfo.js.map +1 -0
  140. package/lib/common/build/skipGuard.d.ts +8 -0
  141. package/lib/common/build/skipGuard.js +41 -0
  142. package/lib/common/build/skipGuard.js.map +1 -0
  143. package/lib/common/build/testScratch.d.ts +14 -0
  144. package/lib/common/build/testScratch.js +45 -0
  145. package/lib/common/build/testScratch.js.map +1 -0
  146. package/lib/common/deploy/deployCommon.d.ts +101 -0
  147. package/lib/common/deploy/deployCommon.js +361 -0
  148. package/lib/common/deploy/deployCommon.js.map +1 -0
  149. package/lib/common/deploy/deployHappySoup.d.ts +54 -0
  150. package/lib/common/deploy/deployHappySoup.js +143 -0
  151. package/lib/common/deploy/deployHappySoup.js.map +1 -0
  152. package/lib/common/deploy/deployProject.d.ts +24 -0
  153. package/lib/common/deploy/deployProject.js +114 -0
  154. package/lib/common/deploy/deployProject.js.map +1 -0
  155. package/lib/common/deploy/flags.d.ts +34 -0
  156. package/lib/common/deploy/flags.js +91 -0
  157. package/lib/common/deploy/flags.js.map +1 -0
  158. package/lib/common/deploy/runDeployStage.d.ts +16 -0
  159. package/lib/common/deploy/runDeployStage.js +65 -0
  160. package/lib/common/deploy/runDeployStage.js.map +1 -0
  161. package/lib/common/deploy/stageCommand.d.ts +106 -0
  162. package/lib/common/deploy/stageCommand.js +131 -0
  163. package/lib/common/deploy/stageCommand.js.map +1 -0
  164. package/lib/common/deploy/validate.d.ts +11 -0
  165. package/lib/common/deploy/validate.js +54 -0
  166. package/lib/common/deploy/validate.js.map +1 -0
  167. package/lib/common/env.d.ts +9 -0
  168. package/lib/common/env.js +47 -0
  169. package/lib/common/env.js.map +1 -0
  170. package/lib/common/exec/sfCli.d.ts +27 -0
  171. package/lib/common/exec/sfCli.js +50 -0
  172. package/lib/common/exec/sfCli.js.map +1 -0
  173. package/lib/common/flags/env.d.ts +44 -0
  174. package/lib/common/flags/env.js +81 -0
  175. package/lib/common/flags/env.js.map +1 -0
  176. package/lib/common/git.d.ts +19 -0
  177. package/lib/common/git.js +79 -0
  178. package/lib/common/git.js.map +1 -0
  179. package/lib/common/logger.d.ts +10 -0
  180. package/lib/common/logger.js +33 -0
  181. package/lib/common/logger.js.map +1 -0
  182. package/lib/common/notify/getCommitStories.d.ts +16 -0
  183. package/lib/common/notify/getCommitStories.js +69 -0
  184. package/lib/common/notify/getCommitStories.js.map +1 -0
  185. package/lib/common/notify/renderTemplate.d.ts +3 -0
  186. package/lib/common/notify/renderTemplate.js +24 -0
  187. package/lib/common/notify/renderTemplate.js.map +1 -0
  188. package/lib/common/notify/sendNotification.d.ts +2 -0
  189. package/lib/common/notify/sendNotification.js +50 -0
  190. package/lib/common/notify/sendNotification.js.map +1 -0
  191. package/lib/common/notify/templates.d.ts +11 -0
  192. package/lib/common/notify/templates.js +85 -0
  193. package/lib/common/notify/templates.js.map +1 -0
  194. package/lib/common/schemas/deployConfig.d.ts +25 -0
  195. package/lib/common/schemas/deployConfig.js +55 -0
  196. package/lib/common/schemas/deployConfig.js.map +1 -0
  197. package/lib/common/schemas/deployProgress.d.ts +10 -0
  198. package/lib/common/schemas/deployProgress.js +27 -0
  199. package/lib/common/schemas/deployProgress.js.map +1 -0
  200. package/lib/common/schemas/deployRules.d.ts +34 -0
  201. package/lib/common/schemas/deployRules.js +40 -0
  202. package/lib/common/schemas/deployRules.js.map +1 -0
  203. package/lib/common/sfApex.d.ts +22 -0
  204. package/lib/common/sfApex.js +158 -0
  205. package/lib/common/sfApex.js.map +1 -0
  206. package/lib/common/sfAuth.d.ts +30 -0
  207. package/lib/common/sfAuth.js +99 -0
  208. package/lib/common/sfAuth.js.map +1 -0
  209. package/lib/common/sfConfig.d.ts +6 -0
  210. package/lib/common/sfConfig.js +45 -0
  211. package/lib/common/sfConfig.js.map +1 -0
  212. package/lib/common/sfPackages.d.ts +12 -0
  213. package/lib/common/sfPackages.js +53 -0
  214. package/lib/common/sfPackages.js.map +1 -0
  215. package/lib/common/sfPlugins.d.ts +11 -0
  216. package/lib/common/sfPlugins.js +134 -0
  217. package/lib/common/sfPlugins.js.map +1 -0
  218. package/lib/common/sfdxDependabot/updater.d.ts +14 -0
  219. package/lib/common/sfdxDependabot/updater.js +94 -0
  220. package/lib/common/sfdxDependabot/updater.js.map +1 -0
  221. package/lib/common/vcs/gitlab.d.ts +21 -0
  222. package/lib/common/vcs/gitlab.js +208 -0
  223. package/lib/common/vcs/gitlab.js.map +1 -0
  224. package/lib/common/vcs/index.d.ts +4 -0
  225. package/lib/common/vcs/index.js +26 -0
  226. package/lib/common/vcs/index.js.map +1 -0
  227. package/lib/common/vcs/types.d.ts +69 -0
  228. package/lib/common/vcs/types.js +17 -0
  229. package/lib/common/vcs/types.js.map +1 -0
  230. package/lib/config/defaultDeploymentPlugins.d.ts +2 -0
  231. package/lib/config/defaultDeploymentPlugins.js +18 -0
  232. package/lib/config/defaultDeploymentPlugins.js.map +1 -0
  233. package/lib/config/trustedPlugins.d.ts +2 -0
  234. package/lib/config/trustedPlugins.js +18 -0
  235. package/lib/config/trustedPlugins.js.map +1 -0
  236. package/lib/index.d.ts +2 -0
  237. package/lib/index.js +17 -0
  238. package/lib/index.js.map +1 -0
  239. package/messages/simply.cicd.build.cleanup-scratch-orgs.md +11 -0
  240. package/messages/simply.cicd.build.create-fallback-tag.md +21 -0
  241. package/messages/simply.cicd.build.create-package-version.md +49 -0
  242. package/messages/simply.cicd.build.create-scratch.md +21 -0
  243. package/messages/simply.cicd.build.delete-scratch.md +13 -0
  244. package/messages/simply.cicd.build.determine-package-changes.md +15 -0
  245. package/messages/simply.cicd.build.generate-flexipage-diff.md +11 -0
  246. package/messages/simply.cicd.build.generate-flow-diff.md +11 -0
  247. package/messages/simply.cicd.build.install-dependencies.md +17 -0
  248. package/messages/simply.cicd.build.lwc-jest.md +11 -0
  249. package/messages/simply.cicd.build.md +75 -0
  250. package/messages/simply.cicd.build.push-scratch.md +21 -0
  251. package/messages/simply.cicd.build.test-scratch.md +17 -0
  252. package/messages/simply.cicd.deploy.happy-soup.deploy-unpackaged.md +11 -0
  253. package/messages/simply.cicd.deploy.happy-soup.deployment-close-out.md +39 -0
  254. package/messages/simply.cicd.deploy.happy-soup.install-packaged.md +15 -0
  255. package/messages/simply.cicd.deploy.happy-soup.post-deploy.md +11 -0
  256. package/messages/simply.cicd.deploy.happy-soup.post-destructive.md +11 -0
  257. package/messages/simply.cicd.deploy.happy-soup.pre-destructive.md +11 -0
  258. package/messages/simply.cicd.deploy.happy-soup.tag-deployment.md +35 -0
  259. package/messages/simply.cicd.deploy.happy-soup.validate.md +25 -0
  260. package/messages/simply.cicd.deploy.md +75 -0
  261. package/messages/simply.cicd.deploy.project.deploy-unpackaged.md +11 -0
  262. package/messages/simply.cicd.deploy.project.install-packaged.md +23 -0
  263. package/messages/simply.cicd.deploy.project.post-deploy.md +11 -0
  264. package/messages/simply.cicd.deploy.project.post-destructive.md +11 -0
  265. package/messages/simply.cicd.deploy.project.pre-destructive.md +11 -0
  266. package/messages/simply.cicd.deploy.project.run-apex-tests.md +15 -0
  267. package/messages/simply.cicd.deploy.project.validate.md +25 -0
  268. package/messages/simply.cicd.deploy.validate.md +25 -0
  269. package/messages/simply.cicd.md +3 -0
  270. package/messages/simply.cicd.notify.happy-soup.md +73 -0
  271. package/messages/simply.cicd.notify.project.md +125 -0
  272. package/messages/simply.cicd.notify.teams.md +27 -0
  273. package/messages/simply.cicd.sfdx-dependabot.md +91 -0
  274. package/package.json +214 -0
@@ -0,0 +1,125 @@
1
+ # summary
2
+
3
+ Send a project deployment notification to Microsoft Teams, with Jira story integration.
4
+
5
+ # description
6
+
7
+ Run once with `--before-script` at the start of a deployment pipeline (to record the previously installed and target package versions), and once with `--after-script` at the end (to post a success or failure card to Teams, including the Jira stories that shipped between those two versions).
8
+
9
+ # flags.after-script.summary
10
+
11
+ Run the after-deployment notification logic.
12
+
13
+ # flags.before-script.summary
14
+
15
+ Run the before-deployment setup logic (resolves and records package versions).
16
+
17
+ # flags.alias.summary
18
+
19
+ The target Salesforce org alias to authenticate and query for the previously installed package version.
20
+
21
+ # flags.ci-commit-ref-name.summary
22
+
23
+ The git branch or tag ref for this pipeline run.
24
+
25
+ # flags.ci-environment-name.summary
26
+
27
+ The name of the target CI environment.
28
+
29
+ # flags.ci-job-name.summary
30
+
31
+ The name of the current CI job.
32
+
33
+ # flags.ci-job-stage.summary
34
+
35
+ The stage of the current CI job (e.g. pre-destructive, post-destructive).
36
+
37
+ # flags.ci-job-status.summary
38
+
39
+ The status of the current CI job (e.g. success, failed, canceled).
40
+
41
+ # flags.ci-pipeline-id.summary
42
+
43
+ The ID of the current CI pipeline.
44
+
45
+ # flags.ci-pipeline-url.summary
46
+
47
+ The URL of the current CI pipeline.
48
+
49
+ # flags.ci-project-title.summary
50
+
51
+ The project title shown in the notification card's heading.
52
+
53
+ # flags.client-id.summary
54
+
55
+ Connected app client ID for JWT authentication to the target org.
56
+
57
+ # flags.devhub-tooling-client-id.summary
58
+
59
+ Connected app client ID for JWT authentication to the tooling DevHub.
60
+
61
+ # flags.devhub-tooling-instance-url.summary
62
+
63
+ Login instance URL for the tooling DevHub.
64
+
65
+ # flags.devhub-tooling-username.summary
66
+
67
+ Username for JWT authentication to the tooling DevHub.
68
+
69
+ # flags.enabled.summary
70
+
71
+ Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.
72
+
73
+ # flags.instance-url.summary
74
+
75
+ Login instance URL for the target org.
76
+
77
+ # flags.jira-base-url.summary
78
+
79
+ Base URL for linking a Jira issue key, e.g. https://jira.example.com/browse. Story keys are shown without links if not provided.
80
+
81
+ # flags.jira-project-key.summary
82
+
83
+ Fallback Jira project key(s) used to search commit messages for story references, if none are configured in .sfdevrc.json.
84
+
85
+ # flags.jwt-key-file.summary
86
+
87
+ Path to the JWT private key file, used for both the target org and tooling DevHub authentication.
88
+
89
+ # flags.prev-installed-package-version.summary
90
+
91
+ The previously installed package version. Only needed if re-running --after-script without having run --before-script first in the same job.
92
+
93
+ # flags.subscriber-package-version-id.summary
94
+
95
+ The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the tooling DevHub.
96
+
97
+ # flags.target-package-version.summary
98
+
99
+ The target package version. Only needed if re-running --after-script without having run --before-script first in the same job.
100
+
101
+ # flags.teams-webhook-url.summary
102
+
103
+ One or more Teams webhook URLs to send the notification to.
104
+
105
+ # flags.username.summary
106
+
107
+ Username for JWT authentication to the target org.
108
+
109
+ # flags.debug.summary
110
+
111
+ Enable verbose debug logging.
112
+
113
+ # examples
114
+
115
+ - <%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --username user@example.com --jwt-key-file server.key --client-id abc123 --instance-url https://login.salesforce.com --enabled
116
+
117
+ - <%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
118
+
119
+ # error.missingTeamsWebhookUrl
120
+
121
+ --teams-webhook-url must be specified.
122
+
123
+ # error.missingScriptFlag
124
+
125
+ Either --before-script or --after-script must be specified.
@@ -0,0 +1,27 @@
1
+ # summary
2
+
3
+ Send a serialized JSON payload to a Microsoft Teams webhook.
4
+
5
+ # description
6
+
7
+ Posts a payload as-is to one or more Microsoft Teams incoming webhook URLs. Use this for custom notifications that don't fit the built-in `notify project` or `notify happy-soup` card templates.
8
+
9
+ # flags.payload.summary
10
+
11
+ The JSON payload to send to Teams, as a serialized string.
12
+
13
+ # flags.webhook-url.summary
14
+
15
+ The Teams webhook URL to send the payload to.
16
+
17
+ # flags.enabled.summary
18
+
19
+ Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.
20
+
21
+ # flags.debug.summary
22
+
23
+ Enable verbose debug logging.
24
+
25
+ # examples
26
+
27
+ - <%= config.bin %> <%= command.id %> --payload '{"text":"Deployment complete"}' --webhook-url https://outlook.office.com/webhook/... --enabled
@@ -0,0 +1,91 @@
1
+ # summary
2
+
3
+ Automatically update downstream projects with a newly released Salesforce 2GP package version.
4
+
5
+ # description
6
+
7
+ Discovers repositories under a GitLab group, reads each one's `sfdx-project.json`, and for any repository that both depends on the released package and has opted in via the `SFDX_DEPENDABOT_ENABLED=TRUE` project-level CI/CD variable, opens (or updates) a merge request bumping the dependency to the newly released version.
8
+
9
+ Each eligible repository must explicitly opt in — this command never touches a downstream repository's dependencies without that variable set.
10
+
11
+ # flags.gitlab-api-url.summary
12
+
13
+ GitLab API v4 base URL.
14
+
15
+ # flags.gitlab-api-url.description
16
+
17
+ Falls back to the SFDX_DEPENDABOT_GITLAB_API_URL or CI_API_V4_URL environment variables if not provided.
18
+
19
+ # flags.gitlab-token.summary
20
+
21
+ GitLab access token with file-writing and merge request privileges.
22
+
23
+ # flags.root-group-id.summary
24
+
25
+ GitLab group ID or URL-encoded path to scan for downstream projects.
26
+
27
+ # flags.subscriber-package-version-id.summary
28
+
29
+ The newly released Salesforce subscriber package version ID (04t...).
30
+
31
+ # flags.devhub-username.summary
32
+
33
+ Salesforce DevHub username or alias used to resolve the package's name and version.
34
+
35
+ # flags.dry-run.summary
36
+
37
+ Run discovery and parsing, but perform zero write, commit, or merge request operations.
38
+
39
+ # flags.project-allowlist.summary
40
+
41
+ Comma-separated list of GitLab project paths to include in the scan. If specified, only matching projects are scanned.
42
+
43
+ # flags.project-denylist.summary
44
+
45
+ Comma-separated list of GitLab project paths to exclude from scanning.
46
+
47
+ # flags.skip-archived.summary
48
+
49
+ Skip archived GitLab repositories.
50
+
51
+ # flags.skip-forks.summary
52
+
53
+ Skip forked GitLab repositories.
54
+
55
+ # flags.branch-prefix.summary
56
+
57
+ Prefix used for generated branch names.
58
+
59
+ # flags.mr-labels.summary
60
+
61
+ Comma-separated labels to apply to created or updated merge requests.
62
+
63
+ # flags.fail-on-error.summary
64
+
65
+ Return a non-zero exit code if one or more per-project operations fail.
66
+
67
+ # flags.max-projects.summary
68
+
69
+ Optional safety limit restricting the maximum number of eligible projects to scan.
70
+
71
+ # flags.vcs-provider.summary
72
+
73
+ The source-control-hosting platform to talk to.
74
+
75
+ # examples
76
+
77
+ - <%= config.bin %> <%= command.id %> --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --dry-run
78
+
79
+ - <%= config.bin %> <%= command.id %> --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --branch-prefix devops/dependabot --mr-labels dependencies
80
+
81
+ # error.missingGitlabApiUrl
82
+
83
+ Missing GitLab API URL. Provide --gitlab-api-url or set SFDX_DEPENDABOT_GITLAB_API_URL / CI_API_V4_URL.
84
+
85
+ # info.starting
86
+
87
+ Starting SFDX Project Dependabot execution...
88
+
89
+ # info.dryRun
90
+
91
+ Executing in DRY-RUN mode. No changes will be written or committed.
package/package.json ADDED
@@ -0,0 +1,214 @@
1
+ {
2
+ "name": "@simplysf/simply-cicd",
3
+ "description": "Commands for Salesforce CI/CD pipelines",
4
+ "version": "0.3.0",
5
+ "author": "@ClayChipps",
6
+ "homepage": "https://github.com/SimplySF/simply-node",
7
+ "bugs": "https://github.com/SimplySF/simply-node/issues",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/SimplySF/simply-node",
11
+ "directory": "packages/simply-cicd"
12
+ },
13
+ "engines": {
14
+ "node": ">=22.0.0"
15
+ },
16
+ "files": [
17
+ "/lib",
18
+ "/messages",
19
+ "/npm-shrinkwrap.json",
20
+ "/oclif.lock",
21
+ "/oclif.manifest.json"
22
+ ],
23
+ "keywords": [
24
+ "force",
25
+ "salesforce",
26
+ "sfdx",
27
+ "salesforcedx",
28
+ "sfdx-plugin",
29
+ "sf-plugin",
30
+ "sf"
31
+ ],
32
+ "license": "Apache-2.0",
33
+ "exports": "./lib/index.js",
34
+ "type": "module",
35
+ "oclif": {
36
+ "bin": "sf",
37
+ "commands": "./lib/commands",
38
+ "devPlugins": [
39
+ "@oclif/plugin-command-snapshot",
40
+ "@oclif/plugin-help",
41
+ "@salesforce/plugin-command-reference"
42
+ ],
43
+ "flexibleTaxonomy": true,
44
+ "plugins": [],
45
+ "repositoryPrefix": "<%- repo %>/blob/@simplysf/simply-cicd@<%- version %>/packages/simply-cicd/<%- commandPath %>",
46
+ "topics": {
47
+ "simply": {
48
+ "description": "Commands for simplifying Salesforce",
49
+ "subtopics": {
50
+ "cicd": {
51
+ "description": "Commands for Salesforce CI/CD pipelines"
52
+ }
53
+ }
54
+ }
55
+ },
56
+ "topicSeparator": " "
57
+ },
58
+ "dependencies": {
59
+ "@oclif/core": "^4.11.2",
60
+ "@salesforce/core": "^8.30.0",
61
+ "@salesforce/sf-plugins-core": "^12.2.16",
62
+ "@salesforce/ts-types": "^2.0.12",
63
+ "@simplysf/simply-core": "workspace:^1.1.13",
64
+ "chalk": "^5.6.2",
65
+ "execa": "^8.0.1",
66
+ "handlebars": "^4.7.9",
67
+ "log-symbols": "^7.0.1",
68
+ "zod": "^4.1.12"
69
+ },
70
+ "devDependencies": {
71
+ "@oclif/plugin-command-snapshot": "^5.3.19",
72
+ "@salesforce/plugin-command-reference": "^3.1.99",
73
+ "@vitest/coverage-v8": "^4.1.10",
74
+ "vitest": "^4.1.10"
75
+ },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
79
+ "scripts": {
80
+ "build": "wireit",
81
+ "compile": "wireit",
82
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
83
+ "format": "wireit",
84
+ "link-check": "wireit",
85
+ "lint": "wireit",
86
+ "readme": "oclif readme --no-aliases",
87
+ "test": "wireit",
88
+ "test:coverage": "vitest run --coverage --project simply-cicd",
89
+ "test:nuts": "vitest run --config vitest.nuts.config.ts --project simply-cicd",
90
+ "test:only": "wireit",
91
+ "test:watch": "vitest watch --project simply-cicd"
92
+ },
93
+ "wireit": {
94
+ "build": {
95
+ "dependencies": [
96
+ "command-snapshot",
97
+ "compile",
98
+ "lint"
99
+ ]
100
+ },
101
+ "compile": {
102
+ "command": "tsc -p . --pretty --incremental",
103
+ "files": [
104
+ "src/**/*.ts",
105
+ "**/tsconfig.json",
106
+ "../../tsconfig.json",
107
+ "messages/**"
108
+ ],
109
+ "output": [
110
+ "lib/**",
111
+ "*.tsbuildinfo"
112
+ ],
113
+ "clean": "if-file-deleted"
114
+ },
115
+ "format": {
116
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
117
+ "files": [
118
+ "src/**/*.ts",
119
+ "test/**/*.ts",
120
+ "schemas/**/*.json",
121
+ "command-snapshot.json",
122
+ ".prettier*"
123
+ ],
124
+ "output": []
125
+ },
126
+ "lint": {
127
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
128
+ "files": [
129
+ "src/**/*.ts",
130
+ "test/**/*.ts",
131
+ "messages/**",
132
+ "**/.eslint*",
133
+ "**/tsconfig.json",
134
+ "../../eslint.config.mjs",
135
+ "../../tsconfig.json"
136
+ ],
137
+ "output": []
138
+ },
139
+ "test": {
140
+ "dependencies": [
141
+ "test:compile",
142
+ "test:only",
143
+ "test:command-reference",
144
+ "lint",
145
+ "test:json-schema",
146
+ "link-check"
147
+ ]
148
+ },
149
+ "test:command-reference": {
150
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
151
+ "files": [
152
+ "src/**/*.ts",
153
+ "messages/**",
154
+ "package.json"
155
+ ],
156
+ "output": [
157
+ "tmp/root"
158
+ ]
159
+ },
160
+ "command-snapshot": {
161
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:generate && prettier --write command-snapshot.json",
162
+ "files": [
163
+ "src/**/*.ts"
164
+ ],
165
+ "output": [
166
+ "command-snapshot.json"
167
+ ],
168
+ "dependencies": [
169
+ "compile"
170
+ ]
171
+ },
172
+ "test:json-schema": {
173
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
174
+ "files": [
175
+ "src/**/*.ts",
176
+ "schemas"
177
+ ],
178
+ "output": []
179
+ },
180
+ "test:compile": {
181
+ "command": "tsc -p \"./test\" --pretty",
182
+ "files": [
183
+ "test/**/*.ts",
184
+ "**/tsconfig.json",
185
+ "../../tsconfig.json"
186
+ ],
187
+ "output": []
188
+ },
189
+ "test:only": {
190
+ "command": "vitest run --project simply-cicd",
191
+ "env": {
192
+ "FORCE_COLOR": "2"
193
+ },
194
+ "files": [
195
+ "test/**/*.ts",
196
+ "src/**/*.ts",
197
+ "**/tsconfig.json",
198
+ "../../tsconfig.json",
199
+ "vitest.config.ts",
200
+ "!*.nut.ts"
201
+ ],
202
+ "output": []
203
+ },
204
+ "link-check": {
205
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|localhost|example\\.(com|org|net)|github\\.com/SimplySF/simply-node|raw\\.githubusercontent\\.com/SimplySF/simply-node|blob/.*/lib/|%s\" --markdown --retry --directory-listing --verbosity error",
206
+ "files": [
207
+ "./*.md",
208
+ "./!(CHANGELOG).md",
209
+ "messages/**/*.md"
210
+ ],
211
+ "output": []
212
+ }
213
+ }
214
+ }