@simplysf/simply-cicd 0.5.3 → 0.6.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 +116 -79
- package/lib/commands/simply/cicd/build/create-package-version.d.ts +3 -3
- package/lib/commands/simply/cicd/build/create-package-version.js +12 -12
- package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +3 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +15 -0
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -1
- package/lib/commands/simply/cicd/notify/happy-soup.d.ts +10 -8
- package/lib/commands/simply/cicd/notify/happy-soup.js +39 -62
- package/lib/commands/simply/cicd/notify/happy-soup.js.map +1 -1
- package/lib/commands/simply/cicd/notify/project.d.ts +3 -3
- package/lib/commands/simply/cicd/notify/project.js +12 -12
- package/lib/commands/simply/cicd/notify/project.js.map +1 -1
- package/lib/commands/simply/cicd/sfdx-dependabot.js +1 -1
- package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -1
- package/lib/common/build/createPackageVersion.d.ts +3 -3
- package/lib/common/build/createPackageVersion.js +3 -3
- package/lib/common/build/createPackageVersion.js.map +1 -1
- package/lib/common/build/testScratch.d.ts +3 -3
- package/lib/common/build/testScratch.js +3 -3
- package/lib/common/deploy/deployCommon.d.ts +1 -0
- package/lib/common/deploy/deployCommon.js +1 -1
- package/lib/common/deploy/deployCommon.js.map +1 -1
- package/lib/common/deploy/deployHappySoup.d.ts +3 -0
- package/lib/common/deploy/deployHappySoup.js +29 -2
- package/lib/common/deploy/deployHappySoup.js.map +1 -1
- package/lib/common/happySoup/resolveOriginProject.d.ts +22 -0
- package/lib/common/happySoup/resolveOriginProject.js +61 -0
- package/lib/common/happySoup/resolveOriginProject.js.map +1 -0
- package/lib/common/notify/getCommitStories.d.ts +8 -0
- package/lib/common/notify/getCommitStories.js +17 -8
- package/lib/common/notify/getCommitStories.js.map +1 -1
- package/lib/common/notify/getRemoteCommitStories.d.ts +10 -0
- package/lib/common/notify/getRemoteCommitStories.js +45 -0
- package/lib/common/notify/getRemoteCommitStories.js.map +1 -0
- package/lib/common/notify/happySoupNotification.d.ts +26 -0
- package/lib/common/notify/happySoupNotification.js +140 -0
- package/lib/common/notify/happySoupNotification.js.map +1 -0
- package/lib/common/notify/projectNotification.d.ts +7 -7
- package/lib/common/notify/projectNotification.js +18 -18
- package/lib/common/notify/projectNotification.js.map +1 -1
- package/lib/common/notify/templates.d.ts +2 -2
- package/lib/common/notify/templates.js +12 -0
- package/lib/common/notify/templates.js.map +1 -1
- package/lib/common/schemas/deployProgress.d.ts +23 -0
- package/lib/common/schemas/deployProgress.js +19 -0
- package/lib/common/schemas/deployProgress.js.map +1 -1
- package/lib/common/schemas/deployRules.d.ts +3 -3
- package/lib/common/sfConfig.d.ts +13 -0
- package/lib/common/sfConfig.js +20 -0
- package/lib/common/sfConfig.js.map +1 -1
- package/lib/common/sfPackages.d.ts +17 -0
- package/lib/common/sfPackages.js +90 -2
- package/lib/common/sfPackages.js.map +1 -1
- package/lib/common/sfdxDependabot/dependabotRun.js +1 -1
- package/lib/common/sfdxDependabot/dependabotRun.js.map +1 -1
- package/lib/common/vcs/github.d.ts +2 -1
- package/lib/common/vcs/github.js +9 -0
- package/lib/common/vcs/github.js.map +1 -1
- package/lib/common/vcs/gitlab.d.ts +3 -1
- package/lib/common/vcs/gitlab.js +10 -2
- package/lib/common/vcs/gitlab.js.map +1 -1
- package/lib/common/vcs/index.d.ts +1 -1
- package/lib/common/vcs/types.d.ts +15 -0
- package/messages/simply.cicd.build.create-package-version.md +7 -7
- package/messages/simply.cicd.deploy.happy-soup.install-packaged.md +13 -1
- package/messages/simply.cicd.notify.happy-soup.md +27 -1
- package/messages/simply.cicd.notify.project.md +8 -8
- package/messages/simply.cicd.sfdx-dependabot.md +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitlab.js","sourceRoot":"","sources":["../../../src/common/vcs/gitlab.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"gitlab.js","sourceRoot":"","sources":["../../../src/common/vcs/gitlab.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmDH,SAAS,gBAAgB,CAAC,OAA8B;IACtD,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,iBAAiB,EAAE,OAAO,CAAC,mBAAmB;QAC9C,aAAa,EAAE,OAAO,CAAC,cAAc;QACrC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;QACnC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI;QACrE,GAAG,EAAE,OAAO;KACb,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,YAAwC;IACrE,OAAO;QACL,EAAE,EAAE,YAAY,CAAC,EAAE;QACnB,GAAG,EAAE,YAAY,CAAC,GAAG;QACrB,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,YAAY,EAAE,YAAY,CAAC,aAAa;QACxC,YAAY,EAAE,YAAY,CAAC,aAAa;QACxC,MAAM,EAAE,YAAY,CAAC,OAAO;QAC5B,GAAG,EAAE,YAAY;KAClB,CAAC;AACJ,CAAC;AAED,oGAAoG;AACpG,SAAS,cAAc,CAAC,OAAsB;IAC5C,MAAM,GAAG,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,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CAAC;IACzB,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,QAAgB;QACvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createVcsProvider, listVcsProviderKinds, registerVcsProvider } from './registry.js';
|
|
2
2
|
export { GitHubProvider } from './github.js';
|
|
3
3
|
export { GitLabProvider } from './gitlab.js';
|
|
4
|
-
export type { VcsBranch, VcsCiContext, VcsCommit, VcsMergeRequest, VcsProject, VcsProjectRef, VcsProjectVariable, VcsProvider, VcsProviderFactory, VcsProviderKind, VcsProviderOptions, VcsTerminology, } from './types.js';
|
|
4
|
+
export type { VcsBranch, VcsCiContext, VcsCommit, VcsCommitLogEntry, VcsMergeRequest, VcsProject, VcsProjectRef, VcsProjectVariable, VcsProvider, VcsProviderFactory, VcsProviderKind, VcsProviderOptions, VcsTerminology, } from './types.js';
|
|
@@ -32,6 +32,12 @@ export type VcsCommit = {
|
|
|
32
32
|
id?: string;
|
|
33
33
|
raw: unknown;
|
|
34
34
|
};
|
|
35
|
+
/** A single commit as returned by a ref-to-ref comparison, normalized across VCS platforms. */
|
|
36
|
+
export type VcsCommitLogEntry = {
|
|
37
|
+
sha?: string;
|
|
38
|
+
message: string;
|
|
39
|
+
raw: unknown;
|
|
40
|
+
};
|
|
35
41
|
/**
|
|
36
42
|
* A merge/pull request, normalized across VCS platforms. `iid` is the number the platform shows
|
|
37
43
|
* users and accepts in its per-request endpoints — GitLab's `iid`, GitHub's PR `number`.
|
|
@@ -74,6 +80,13 @@ export type VcsProviderOptions = {
|
|
|
74
80
|
token: string;
|
|
75
81
|
/** Overrides the provider's derived API base URL. Rarely needed outside self-hosted instances. */
|
|
76
82
|
apiUrl?: string;
|
|
83
|
+
/**
|
|
84
|
+
* What kind of token `token` is, so the provider can pick the right auth header. Only GitLab
|
|
85
|
+
* distinguishes: a personal/project access token uses `PRIVATE-TOKEN`, a `CI_JOB_TOKEN` uses
|
|
86
|
+
* `JOB-TOKEN`. Defaults to `'personal'`. GitHub ignores this — a `GITHUB_TOKEN` and a PAT both
|
|
87
|
+
* authenticate the same way.
|
|
88
|
+
*/
|
|
89
|
+
tokenKind?: 'personal' | 'job';
|
|
77
90
|
};
|
|
78
91
|
/**
|
|
79
92
|
* A source-control-hosting platform client, abstracted so that commands never encode one
|
|
@@ -93,6 +106,8 @@ export interface VcsProvider {
|
|
|
93
106
|
listProjects(groupId: string | number): Promise<VcsProject[]>;
|
|
94
107
|
/** Fetches the raw content of a file from a project at a given ref. */
|
|
95
108
|
getFileContent(project: VcsProjectRef, filePath: string, ref: string): Promise<string>;
|
|
109
|
+
/** Lists the commits reachable from `to` but not from `from` (e.g. between two tags/SHAs). */
|
|
110
|
+
compareRefs(project: VcsProjectRef, from: string, to: string): Promise<VcsCommitLogEntry[]>;
|
|
96
111
|
/** Returns whether a branch exists in a project. */
|
|
97
112
|
branchExists(project: VcsProjectRef, branchName: string): Promise<boolean>;
|
|
98
113
|
/** Creates a branch from a reference point (usually the project's default branch). */
|
|
@@ -20,17 +20,17 @@ Source trigger of the CI pipeline (e.g. merge_request_event). When set to merge_
|
|
|
20
20
|
|
|
21
21
|
URL of the CI pipeline, used as the package version's description.
|
|
22
22
|
|
|
23
|
-
# flags.devhub-
|
|
23
|
+
# flags.packaging-devhub-username.summary
|
|
24
24
|
|
|
25
|
-
Username of the Dev Hub used for
|
|
25
|
+
Username of the Dev Hub used for packaging operations like package version creation.
|
|
26
26
|
|
|
27
|
-
# flags.devhub-
|
|
27
|
+
# flags.packaging-devhub-client-id.summary
|
|
28
28
|
|
|
29
|
-
Connected app client ID for the
|
|
29
|
+
Connected app client ID for the packaging Dev Hub.
|
|
30
30
|
|
|
31
|
-
# flags.devhub-
|
|
31
|
+
# flags.packaging-devhub-instance-url.summary
|
|
32
32
|
|
|
33
|
-
Login instance URL for the
|
|
33
|
+
Login instance URL for the packaging Dev Hub.
|
|
34
34
|
|
|
35
35
|
# flags.always-create-package.summary
|
|
36
36
|
|
|
@@ -46,4 +46,4 @@ Prefix identifying release branches. Determines whether this build creates a pac
|
|
|
46
46
|
|
|
47
47
|
# examples
|
|
48
48
|
|
|
49
|
-
- <%= config.bin %> <%= command.id %> --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-... --devhub-
|
|
49
|
+
- <%= config.bin %> <%= command.id %> --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-username packaging-devhub@example.com --packaging-devhub-client-id 3MVG9... --packaging-devhub-instance-url https://login.salesforce.com --jwt-key-file ./server.key
|
|
@@ -4,12 +4,24 @@ Install packaged dependencies into the target org for a happy-soup deployment.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Authenticates to the target org and installs the packaged dependencies declared in `sfdx-project.json`.
|
|
7
|
+
Authenticates to the target org and installs the packaged dependencies declared in `sfdx-project.json`. For every dependency that upgrades an already-installed package, records the previous/target version and origin commit information to the deploy progress file, for `notify happy-soup` to look up related stories from later.
|
|
8
8
|
|
|
9
9
|
# flags.install-type.summary
|
|
10
10
|
|
|
11
11
|
The type of dependency installation to perform.
|
|
12
12
|
|
|
13
|
+
# flags.packaging-devhub-client-id.summary
|
|
14
|
+
|
|
15
|
+
Connected app client ID for JWT authentication to the packaging DevHub.
|
|
16
|
+
|
|
17
|
+
# flags.packaging-devhub-instance-url.summary
|
|
18
|
+
|
|
19
|
+
Login instance URL for the packaging DevHub.
|
|
20
|
+
|
|
21
|
+
# flags.packaging-devhub-username.summary
|
|
22
|
+
|
|
23
|
+
Username for JWT authentication to the packaging DevHub. Required (along with the other `--packaging-devhub-*` flags) to look up the previous/target version's origin commit information for upgraded packages; omitted entirely (with a warning) when not provided.
|
|
24
|
+
|
|
13
25
|
# examples
|
|
14
26
|
|
|
15
27
|
- <%= config.bin %> <%= command.id %> --alias my-org
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Send a happy-soup deployment stage notification to Microsoft Teams,
|
|
3
|
+
Send a happy-soup deployment stage notification to Microsoft Teams, with ALM story integration for upgraded packages.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
7
|
Run with `--before-script` at the start of a stage to post a "starting" card, and with `--after-script` at the end to post a success or failure card. With `--notify-on-completion`, intermediate stage notifications are suppressed and only the final job (`--is-final-job` combined with `--after-script`) posts a card.
|
|
8
8
|
|
|
9
|
+
On a successful `--after-script`, reads the packages upgraded by `deploy happy-soup install-packaged` from the deploy progress file, looks up the commit history between each package's previous and target version in its own origin repository, and includes any matched issue references per package in the notification.
|
|
10
|
+
|
|
9
11
|
# flags.after-script.summary
|
|
10
12
|
|
|
11
13
|
Run the after-stage notification logic.
|
|
@@ -34,6 +36,10 @@ The stage of the current CI job.
|
|
|
34
36
|
|
|
35
37
|
The status of the current CI job (e.g. success, failed).
|
|
36
38
|
|
|
39
|
+
# flags.ci-job-token.summary
|
|
40
|
+
|
|
41
|
+
The CI job token to try first when looking up an upgraded package's origin commit history. Falls back to --project-access-token if the job token can't read that repository.
|
|
42
|
+
|
|
37
43
|
# flags.ci-pipeline-id.summary
|
|
38
44
|
|
|
39
45
|
The ID of the current CI pipeline.
|
|
@@ -42,10 +48,30 @@ The ID of the current CI pipeline.
|
|
|
42
48
|
|
|
43
49
|
The URL of the current CI pipeline.
|
|
44
50
|
|
|
51
|
+
# flags.deploy-progress-file.summary
|
|
52
|
+
|
|
53
|
+
Path to the deployment progress file to read upgraded package information from.
|
|
54
|
+
|
|
45
55
|
# flags.enabled.summary
|
|
46
56
|
|
|
47
57
|
Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.
|
|
48
58
|
|
|
59
|
+
# flags.alm-base-url.summary
|
|
60
|
+
|
|
61
|
+
Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.
|
|
62
|
+
|
|
63
|
+
# flags.alm-project-key.summary
|
|
64
|
+
|
|
65
|
+
Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.
|
|
66
|
+
|
|
67
|
+
# flags.alm-provider.summary
|
|
68
|
+
|
|
69
|
+
The issue tracker whose reference format to look for in commit messages.
|
|
70
|
+
|
|
71
|
+
# flags.project-access-token.summary
|
|
72
|
+
|
|
73
|
+
A personal or project access token, used to look up an upgraded package's origin commit history when --ci-job-token isn't provided or can't read that repository.
|
|
74
|
+
|
|
49
75
|
# flags.teams-webhook-url.summary
|
|
50
76
|
|
|
51
77
|
One or more Teams webhook URLs to send the notification to.
|
|
@@ -54,17 +54,17 @@ The project title shown in the notification card's heading.
|
|
|
54
54
|
|
|
55
55
|
Connected app client ID for JWT authentication to the target org.
|
|
56
56
|
|
|
57
|
-
# flags.devhub-
|
|
57
|
+
# flags.packaging-devhub-client-id.summary
|
|
58
58
|
|
|
59
|
-
Connected app client ID for JWT authentication to the
|
|
59
|
+
Connected app client ID for JWT authentication to the packaging DevHub.
|
|
60
60
|
|
|
61
|
-
# flags.devhub-
|
|
61
|
+
# flags.packaging-devhub-instance-url.summary
|
|
62
62
|
|
|
63
|
-
Login instance URL for the
|
|
63
|
+
Login instance URL for the packaging DevHub.
|
|
64
64
|
|
|
65
|
-
# flags.devhub-
|
|
65
|
+
# flags.packaging-devhub-username.summary
|
|
66
66
|
|
|
67
|
-
Username for JWT authentication to the
|
|
67
|
+
Username for JWT authentication to the packaging DevHub.
|
|
68
68
|
|
|
69
69
|
# flags.enabled.summary
|
|
70
70
|
|
|
@@ -88,7 +88,7 @@ The issue tracker whose reference format to look for in commit messages.
|
|
|
88
88
|
|
|
89
89
|
# flags.jwt-key-file.summary
|
|
90
90
|
|
|
91
|
-
Path to the JWT private key file, used for both the target org and
|
|
91
|
+
Path to the JWT private key file, used for both the target org and packaging DevHub authentication.
|
|
92
92
|
|
|
93
93
|
# flags.prev-installed-package-version.summary
|
|
94
94
|
|
|
@@ -96,7 +96,7 @@ The previously installed package version. Only needed if re-running --after-scri
|
|
|
96
96
|
|
|
97
97
|
# flags.subscriber-package-version-id.summary
|
|
98
98
|
|
|
99
|
-
The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the
|
|
99
|
+
The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the packaging DevHub.
|
|
100
100
|
|
|
101
101
|
# flags.target-package-version.summary
|
|
102
102
|
|
|
@@ -102,7 +102,7 @@ Missing subscriber package version ID. Provide --subscriber-package-version-id o
|
|
|
102
102
|
|
|
103
103
|
# error.missingDevhubUsername
|
|
104
104
|
|
|
105
|
-
Missing DevHub username/alias. Provide --devhub-username or set
|
|
105
|
+
Missing DevHub username/alias. Provide --devhub-username or set PACKAGING_DEVHUB_USERNAME.
|
|
106
106
|
|
|
107
107
|
# info.starting
|
|
108
108
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-cicd",
|
|
3
3
|
"description": "Commands for Salesforce CI/CD pipelines",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-node",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-node/issues",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@salesforce/core": "^8.30.0",
|
|
61
61
|
"@salesforce/sf-plugins-core": "^12.2.16",
|
|
62
62
|
"@salesforce/ts-types": "^2.0.12",
|
|
63
|
-
"@simplysf/simply-core": "^1.1.
|
|
63
|
+
"@simplysf/simply-core": "^1.1.17",
|
|
64
64
|
"chalk": "^5.6.2",
|
|
65
65
|
"execa": "^8.0.1",
|
|
66
66
|
"handlebars": "^4.7.9",
|
|
@@ -211,5 +211,5 @@
|
|
|
211
211
|
"output": []
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
|
-
"gitHead": "
|
|
214
|
+
"gitHead": "6d496bf3d0ad4f9934e5bef242da7f523f6eae13"
|
|
215
215
|
}
|