contensis-cli 1.6.1-beta.24 → 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 +25 -5
- package/dist/index.js.map +2 -2
- package/dist/shell.js +25 -5
- package/dist/shell.js.map +2 -2
- package/package.json +1 -1
- package/src/commands/push.ts +24 -4
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contensis-cli",
|
|
3
|
-
"version": "1.6.1-beta.
|
|
3
|
+
"version": "1.6.1-beta.25",
|
|
4
4
|
"description": "A fully featured Contensis command line interface with a shell UI provides simple and intuitive ways to manage or profile your content in any NodeJS terminal.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/commands/push.ts
CHANGED
|
@@ -228,7 +228,12 @@ Example call:
|
|
|
228
228
|
},
|
|
229
229
|
},
|
|
230
230
|
repositoryUrl: {
|
|
231
|
-
$path: [
|
|
231
|
+
$path: [
|
|
232
|
+
'repositoryUrl',
|
|
233
|
+
'CONTENSIS_REPOSITORY_URL',
|
|
234
|
+
'CI_PROJECT_URL',
|
|
235
|
+
'GITHUB_REPOSITORY',
|
|
236
|
+
],
|
|
232
237
|
$formatting: (url: string, { GITHUB_ACTIONS }) => {
|
|
233
238
|
if (GITHUB_ACTIONS && !url.startsWith(`https://`))
|
|
234
239
|
url = `https://github.com/${url}`;
|
|
@@ -239,7 +244,12 @@ Example call:
|
|
|
239
244
|
},
|
|
240
245
|
branch: ['branch', 'CI_COMMIT_REF_NAME', 'GITHUB_REF_NAME'],
|
|
241
246
|
commit: {
|
|
242
|
-
id: [
|
|
247
|
+
id: [
|
|
248
|
+
'commitId',
|
|
249
|
+
'CONTENSIS_COMMIT_ID',
|
|
250
|
+
'CI_COMMIT_SHORT_SHA',
|
|
251
|
+
'GITHUB_SHA',
|
|
252
|
+
],
|
|
243
253
|
message: {
|
|
244
254
|
$path: [
|
|
245
255
|
'commitMessage',
|
|
@@ -249,10 +259,20 @@ Example call:
|
|
|
249
259
|
$formatting: (msg?: string) =>
|
|
250
260
|
msg?.replace(/\\n/g, ' ').replace(/\\n/g, ' ').trim(),
|
|
251
261
|
},
|
|
252
|
-
dateTime: [
|
|
253
|
-
|
|
262
|
+
dateTime: [
|
|
263
|
+
'commitDatetime',
|
|
264
|
+
'CONTENSIS_COMMIT_DATETIME',
|
|
265
|
+
'CI_COMMIT_TIMESTAMP',
|
|
266
|
+
], // ${{ github.event.head_commit.timestamp }}
|
|
267
|
+
authorEmail: [
|
|
268
|
+
'authorEmail',
|
|
269
|
+
'CONTENSIS_AUTHOR_EMAIL',
|
|
270
|
+
'GITLAB_USER_EMAIL',
|
|
271
|
+
'GITHUB_ACTOR',
|
|
272
|
+
], // ${{ github.event.head_commit.author.email }}
|
|
254
273
|
committerEmail: [
|
|
255
274
|
'committerEmail',
|
|
275
|
+
'CONTENSIS_COMMITTER_EMAIL',
|
|
256
276
|
'GITLAB_USER_EMAIL',
|
|
257
277
|
'GITHUB_TRIGGERING_ACTOR',
|
|
258
278
|
], // ${{ github.event.head_commit.committer.email }}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.6.1-beta.
|
|
1
|
+
export const LIB_VERSION = "1.6.1-beta.25";
|