@toptal/davinci-ci 4.0.4-alpha-cypress-12-98b69211.20 → 4.0.4-alpha-chore-replace-vorpal-with-commander-0e62306b.27

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": "@toptal/davinci-ci",
3
- "version": "4.0.4-alpha-cypress-12-98b69211.20+98b69211",
3
+ "version": "4.0.4-alpha-chore-replace-vorpal-with-commander-0e62306b.27+0e62306b",
4
4
  "description": "Continuos integrations tools for frontend projects",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,12 +35,15 @@
35
35
  "dependencies": {
36
36
  "@commitlint/cli": "^17.4.0",
37
37
  "@commitlint/config-conventional": "^17.1.0",
38
- "@toptal/davinci-cli-shared": "2.1.2-alpha-cypress-12-98b69211.20+98b69211",
38
+ "@toptal/davinci-cli-shared": "2.1.2-alpha-chore-replace-vorpal-with-commander-0e62306b.27+0e62306b",
39
39
  "danger": "^11.2.2",
40
40
  "markdown-table": "^2.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@jest/globals": "28.1.0"
43
+ "@jest/globals": "^29.4.2"
44
44
  },
45
- "gitHead": "98b69211c95f3e5d6023241a09caec5cceac3680"
45
+ "resolutions": {
46
+ "**/danger/**/commander": "^2.18.0"
47
+ },
48
+ "gitHead": "0e62306b491253cf0aafb2b3b74ac5494c95b4db"
46
49
  }
@@ -0,0 +1,24 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`dangerCommandCreator has the correct command structure 1`] = `
4
+ {
5
+ "action": [Function],
6
+ "allowUnknownOptions": true,
7
+ "command": "danger",
8
+ "description": "Run danger check",
9
+ "options": [
10
+ {
11
+ "label": "check only, without fixing the code",
12
+ "name": "--check",
13
+ },
14
+ {
15
+ "label": "checks commit message quality locally",
16
+ "name": "--local",
17
+ },
18
+ {
19
+ "label": "specify custom danger file",
20
+ "name": "--dangerfile <dangerfile>",
21
+ },
22
+ ],
23
+ }
24
+ `;
@@ -21,7 +21,7 @@ const commandOptions = [
21
21
  },
22
22
  ]
23
23
 
24
- const dangerCommand = ({ options }) => {
24
+ const dangerCommand = options => {
25
25
  print.green('Running danger check...')
26
26
 
27
27
  const { local, dangerfile, ...rest } = options
@@ -0,0 +1,7 @@
1
+ import dangerCommandCreator from './danger.js'
2
+
3
+ describe('dangerCommandCreator', () => {
4
+ it('has the correct command structure', () => {
5
+ expect(dangerCommandCreator).toMatchSnapshot()
6
+ })
7
+ })
@@ -22,6 +22,7 @@ pipeline {
22
22
  string(name: 'REPOSITORY_NAME', defaultValue: '', description: 'Name of repository')
23
23
  string(name: 'TAG', defaultValue: '', description: 'Image tag to deploy')
24
24
  string(name: 'RELEASE', defaultValue: '', description: 'Release name')
25
+ string(name: 'IS_RELEASE', defaultValue: '-release', description: '-release suffix for image')
25
26
  string(name: 'ENV', defaultValue: 'ENV=null', description: 'Environment values in format ENV.key1=value1,ENV.key2=value2')
26
27
  string(name: 'DOCKER_REGISTRY', defaultValue: 'gcr.io/toptal-hub', description: 'Name of registry')
27
28
  }
@@ -91,10 +92,10 @@ pipeline {
91
92
  -f helm_vars/${chart}/temploy/secrets.yaml \
92
93
  -f helm_vars/tls-certs/toptal.rocks/values.yaml \
93
94
  -f helm_vars/tls-certs/toptal.rocks/secrets.yaml \
94
- --set image.repository=${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}-release \
95
+ --set image.repository=${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}${params.IS_RELEASE} \
95
96
  --set nameOverride=${params.REPOSITORY_NAME} \
96
97
  --set-string image.tag=${params.TAG} \
97
- --set davinci-app.image.repository=${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}-release \
98
+ --set davinci-app.image.repository=${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}${params.IS_RELEASE} \
98
99
  --set davinci-app.nameOverride=${params.REPOSITORY_NAME} \
99
100
  --set-string davinci-app.image.tag=${params.TAG} \
100
101
  --set ${params.ENV} \
package/src/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const toptalPlugins = require('./configs/danger/toptal/plugins/index.cjs')
1
+ const toptalPlugins = require('./configs/danger/toptal/plugins/index.cjs')
2
2
  const conventionalCommitsPlugins = require('./configs/danger/conventional-commits/plugins/index.cjs')
3
3
 
4
4
  module.exports = {