@toptal/davinci-ci 7.4.3-alpha-fix-danger-check-does-not-throw-errors-be106b77.2 → 7.4.3
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/CHANGELOG.md +7 -0
- package/package.json +3 -4
- package/src/commands/danger.js +11 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 7.4.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2405](https://github.com/toptal/davinci/pull/2405) [`5daf4e1f`](https://github.com/toptal/davinci/commit/5daf4e1f90dd11ea48bc9730ea454aa468ee0922) Thanks [@dmaklygin](https://github.com/dmaklygin)!
|
8
|
+
- fix danger-ci check
|
9
|
+
|
3
10
|
## 7.4.2
|
4
11
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@toptal/davinci-ci",
|
3
|
-
"version": "7.4.3
|
3
|
+
"version": "7.4.3",
|
4
4
|
"keywords": [
|
5
5
|
"ci",
|
6
6
|
"docker",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"@commitlint/cli": "^17.6.7",
|
32
32
|
"@commitlint/config-conventional": "^17.1.0",
|
33
|
-
"@toptal/davinci-cli-shared": "2.5.
|
33
|
+
"@toptal/davinci-cli-shared": "^2.5.0",
|
34
34
|
"chalk": "^4.1.2",
|
35
35
|
"danger": "^11.2.2",
|
36
36
|
"markdown-table": "^2.0.0"
|
@@ -40,6 +40,5 @@
|
|
40
40
|
},
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
43
|
-
}
|
44
|
-
"gitHead": "be106b7700bfab8565d95e88daebedb6db0f5d16"
|
43
|
+
}
|
45
44
|
}
|
package/src/commands/danger.js
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
print,
|
4
4
|
convertToCLIParameters,
|
5
5
|
files,
|
6
|
-
|
6
|
+
runSync,
|
7
7
|
echo,
|
8
8
|
chalk,
|
9
9
|
} from '@toptal/davinci-cli-shared'
|
@@ -32,7 +32,16 @@ export const dangerCommand = async options => {
|
|
32
32
|
const extraArgs = convertToCLIParameters(rest)
|
33
33
|
|
34
34
|
// We use --base origin/master in case local master is not up to date, or diverging from remote
|
35
|
-
|
35
|
+
runSync(
|
36
|
+
'danger',
|
37
|
+
[
|
38
|
+
scope,
|
39
|
+
local ? '--failOnErrors' : undefined,
|
40
|
+
'--dangerfile',
|
41
|
+
`${dangerfilePath}`,
|
42
|
+
...extraArgs,
|
43
|
+
].filter(Boolean)
|
44
|
+
)
|
36
45
|
}
|
37
46
|
|
38
47
|
export const createDangerCommand = program => {
|