contensis-cli 1.6.1-beta.23 → 1.6.1-beta.25
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/dist/index.js +37 -6
- package/dist/index.js.map +2 -2
- package/dist/shell.js +37 -6
- package/dist/shell.js.map +2 -2
- package/package.json +1 -1
- package/src/commands/push.ts +36 -5
- package/src/version.ts +1 -1
package/dist/shell.js
CHANGED
|
@@ -46464,7 +46464,7 @@ var progress = {
|
|
|
46464
46464
|
};
|
|
46465
46465
|
|
|
46466
46466
|
// src/version.ts
|
|
46467
|
-
var LIB_VERSION = "1.6.1-beta.
|
|
46467
|
+
var LIB_VERSION = "1.6.1-beta.25";
|
|
46468
46468
|
|
|
46469
46469
|
// src/commands/connect.ts
|
|
46470
46470
|
var import_commander2 = require("commander");
|
|
@@ -57504,6 +57504,13 @@ Example call:
|
|
|
57504
57504
|
},
|
|
57505
57505
|
projectId: () => cli.env.currentProject || "",
|
|
57506
57506
|
source: {
|
|
57507
|
+
// Provenance resolution order per field:
|
|
57508
|
+
// 1. explicit cli flag (camelCase key from commander opts)
|
|
57509
|
+
// 2. CONTENSIS_* env var - a safe channel for CI actions to supply
|
|
57510
|
+
// values without embedding them in the command string (where mapped)
|
|
57511
|
+
// 3. generic CI variables the runner exports
|
|
57512
|
+
// The mapper skips empty/undefined candidates and uses the first
|
|
57513
|
+
// non-empty value, so unset optional vars never mask a fallback.
|
|
57507
57514
|
provider: {
|
|
57508
57515
|
$path: ["provider"],
|
|
57509
57516
|
$return: (provider, { GITHUB_ACTIONS, GITLAB_CI }) => {
|
|
@@ -57513,7 +57520,12 @@ Example call:
|
|
|
57513
57520
|
}
|
|
57514
57521
|
},
|
|
57515
57522
|
repositoryUrl: {
|
|
57516
|
-
$path: [
|
|
57523
|
+
$path: [
|
|
57524
|
+
"repositoryUrl",
|
|
57525
|
+
"CONTENSIS_REPOSITORY_URL",
|
|
57526
|
+
"CI_PROJECT_URL",
|
|
57527
|
+
"GITHUB_REPOSITORY"
|
|
57528
|
+
],
|
|
57517
57529
|
$formatting: (url2, { GITHUB_ACTIONS }) => {
|
|
57518
57530
|
if (GITHUB_ACTIONS && !url2.startsWith(`https://`))
|
|
57519
57531
|
url2 = `https://github.com/${url2}`;
|
|
@@ -57523,18 +57535,37 @@ Example call:
|
|
|
57523
57535
|
},
|
|
57524
57536
|
branch: ["branch", "CI_COMMIT_REF_NAME", "GITHUB_REF_NAME"],
|
|
57525
57537
|
commit: {
|
|
57526
|
-
id: [
|
|
57538
|
+
id: [
|
|
57539
|
+
"commitId",
|
|
57540
|
+
"CONTENSIS_COMMIT_ID",
|
|
57541
|
+
"CI_COMMIT_SHORT_SHA",
|
|
57542
|
+
"GITHUB_SHA"
|
|
57543
|
+
],
|
|
57527
57544
|
message: {
|
|
57528
|
-
$path: [
|
|
57545
|
+
$path: [
|
|
57546
|
+
"commitMessage",
|
|
57547
|
+
"CONTENSIS_COMMIT_MESSAGE",
|
|
57548
|
+
"CI_COMMIT_MESSAGE"
|
|
57549
|
+
],
|
|
57529
57550
|
// ${{ github.event.head_commit.message }}
|
|
57530
57551
|
$formatting: (msg) => msg == null ? void 0 : msg.replace(/\\n/g, " ").replace(/\\n/g, " ").trim()
|
|
57531
57552
|
},
|
|
57532
|
-
dateTime: [
|
|
57553
|
+
dateTime: [
|
|
57554
|
+
"commitDatetime",
|
|
57555
|
+
"CONTENSIS_COMMIT_DATETIME",
|
|
57556
|
+
"CI_COMMIT_TIMESTAMP"
|
|
57557
|
+
],
|
|
57533
57558
|
// ${{ github.event.head_commit.timestamp }}
|
|
57534
|
-
authorEmail: [
|
|
57559
|
+
authorEmail: [
|
|
57560
|
+
"authorEmail",
|
|
57561
|
+
"CONTENSIS_AUTHOR_EMAIL",
|
|
57562
|
+
"GITLAB_USER_EMAIL",
|
|
57563
|
+
"GITHUB_ACTOR"
|
|
57564
|
+
],
|
|
57535
57565
|
// ${{ github.event.head_commit.author.email }}
|
|
57536
57566
|
committerEmail: [
|
|
57537
57567
|
"committerEmail",
|
|
57568
|
+
"CONTENSIS_COMMITTER_EMAIL",
|
|
57538
57569
|
"GITLAB_USER_EMAIL",
|
|
57539
57570
|
"GITHUB_TRIGGERING_ACTOR"
|
|
57540
57571
|
]
|