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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contensis-cli",
3
- "version": "1.6.1-beta.24",
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",
@@ -228,7 +228,12 @@ Example call:
228
228
  },
229
229
  },
230
230
  repositoryUrl: {
231
- $path: ['repositoryUrl', 'CI_PROJECT_URL', 'GITHUB_REPOSITORY'],
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: ['commitId', 'CI_COMMIT_SHORT_SHA', 'GITHUB_SHA'],
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: ['commitDatetime', 'CI_COMMIT_TIMESTAMP'], // ${{ github.event.head_commit.timestamp }}
253
- authorEmail: ['authorEmail', 'GITLAB_USER_EMAIL', 'GITHUB_ACTOR'], // ${{ github.event.head_commit.author.email }}
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.24";
1
+ export const LIB_VERSION = "1.6.1-beta.25";