@toptal/davinci-ci 2.0.2-alpha-TPH-1929-fix-backtrace.0 → 2.0.2-alpha-fx-2831-update-cypress-from-9-to-10.7
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 +3 -3
- package/src/commands/danger.js +6 -6
- package/src/configs/danger/conventional-commits/plugins/conventional-commits/index.js +3 -3
- package/src/configs/danger/conventional-commits/plugins/conventional-pr-title/index.js +3 -3
- package/src/configs/danger/conventional-commits/plugins/index.js +1 -1
- package/src/configs/danger/toptal/config.js +2 -2
- package/src/configs/danger/toptal/plugins/index.js +1 -1
- package/src/configs/danger/toptal/plugins/toptal-commits/index.js +3 -3
- package/src/configs/danger/toptal/plugins/toptal-pr-title/index.js +2 -2
- package/src/index.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-fx-2831-update-cypress-from-9-to-10.7+d1813d5e",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@commitlint/cli": "^16.2.4",
|
|
34
34
|
"@commitlint/config-conventional": "^16.0.0",
|
|
35
|
-
"@toptal/davinci-cli-shared": "1.5.3-alpha-
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.5.3-alpha-fx-2831-update-cypress-from-9-to-10.7+d1813d5e",
|
|
36
36
|
"danger": "^11.0.5",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "d1813d5e4618ea1d57ecbf8a275c4186b749a7c7"
|
|
40
40
|
}
|
package/src/commands/danger.js
CHANGED
|
@@ -3,18 +3,18 @@ const {
|
|
|
3
3
|
runSync,
|
|
4
4
|
print,
|
|
5
5
|
convertToCLIParameters,
|
|
6
|
-
files
|
|
6
|
+
files,
|
|
7
7
|
} = require('@toptal/davinci-cli-shared')
|
|
8
8
|
|
|
9
9
|
const commandOptions = [
|
|
10
10
|
{
|
|
11
11
|
label: 'check only, without fixing the code',
|
|
12
|
-
name: '--check'
|
|
12
|
+
name: '--check',
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
label: 'checks commit message quality locally',
|
|
16
|
-
name: '--local'
|
|
17
|
-
}
|
|
16
|
+
name: '--local',
|
|
17
|
+
},
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
const dangerCommand = ({ options }) => {
|
|
@@ -43,7 +43,7 @@ const dangerCommand = ({ options }) => {
|
|
|
43
43
|
local ? '--failOnErrors' : undefined,
|
|
44
44
|
'--dangerfile',
|
|
45
45
|
`${dangerfilePath}`,
|
|
46
|
-
...convertToCLIParameters(rest)
|
|
46
|
+
...convertToCLIParameters(rest),
|
|
47
47
|
].filter(Boolean)
|
|
48
48
|
)
|
|
49
49
|
}
|
|
@@ -53,7 +53,7 @@ const dangerCommandCreator = {
|
|
|
53
53
|
allowUnknownOptions: true,
|
|
54
54
|
command: 'danger',
|
|
55
55
|
description: 'Run danger check',
|
|
56
|
-
options: commandOptions
|
|
56
|
+
options: commandOptions,
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
module.exports = dangerCommandCreator
|
|
@@ -17,7 +17,7 @@ const conventionalCommits = async () => {
|
|
|
17
17
|
|
|
18
18
|
const { commits } = danger.git
|
|
19
19
|
const { rules, parserPreset } = await load({
|
|
20
|
-
extends: ['@commitlint/config-conventional']
|
|
20
|
+
extends: ['@commitlint/config-conventional'],
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
commits.forEach(async commit => {
|
|
@@ -33,7 +33,7 @@ const conventionalCommits = async () => {
|
|
|
33
33
|
|
|
34
34
|
message += table([
|
|
35
35
|
['Message'],
|
|
36
|
-
...result.errors.map(error => [error.message])
|
|
36
|
+
...result.errors.map(error => [error.message]),
|
|
37
37
|
])
|
|
38
38
|
|
|
39
39
|
message +=
|
|
@@ -48,5 +48,5 @@ const conventionalCommits = async () => {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
module.exports = {
|
|
51
|
-
conventionalCommits
|
|
51
|
+
conventionalCommits,
|
|
52
52
|
}
|
|
@@ -18,7 +18,7 @@ const conventionalPRTitle = async () => {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const { rules, parserPreset } = await load({
|
|
21
|
-
extends: ['@commitlint/config-conventional']
|
|
21
|
+
extends: ['@commitlint/config-conventional'],
|
|
22
22
|
})
|
|
23
23
|
const { title } = danger.github.pr
|
|
24
24
|
|
|
@@ -35,7 +35,7 @@ const conventionalPRTitle = async () => {
|
|
|
35
35
|
|
|
36
36
|
message += table([
|
|
37
37
|
['Message'],
|
|
38
|
-
...result.errors.map(error => [error.message])
|
|
38
|
+
...result.errors.map(error => [error.message]),
|
|
39
39
|
])
|
|
40
40
|
|
|
41
41
|
message +=
|
|
@@ -49,5 +49,5 @@ const conventionalPRTitle = async () => {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
module.exports = {
|
|
52
|
-
conventionalPRTitle
|
|
52
|
+
conventionalPRTitle,
|
|
53
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const WHITELISTED_USERS = [
|
|
2
2
|
'dependabot-preview[bot]',
|
|
3
3
|
'dependabot[bot]',
|
|
4
|
-
'toptal-devbot'
|
|
4
|
+
'toptal-devbot',
|
|
5
5
|
]
|
|
6
6
|
const VALID_PR_CODE_REGEX = /\[[A-Z]{1,5}-.*]\s/
|
|
7
7
|
// Valid commit titles:
|
|
@@ -26,5 +26,5 @@ module.exports = {
|
|
|
26
26
|
MISSING_TICKET_CODE_ERROR_MESSAGE,
|
|
27
27
|
VALID_COMMIT_TITLE_REGEX,
|
|
28
28
|
VALID_PR_CODE_REGEX,
|
|
29
|
-
WHITELISTED_USERS
|
|
29
|
+
WHITELISTED_USERS,
|
|
30
30
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const {
|
|
3
3
|
MAX_COMMIT_LINE_LENGTH,
|
|
4
4
|
VALID_COMMIT_TITLE_REGEX,
|
|
5
|
-
WHITELISTED_USERS
|
|
5
|
+
WHITELISTED_USERS,
|
|
6
6
|
} = require('../../config')
|
|
7
7
|
|
|
8
8
|
const validateCommitMessage = message => {
|
|
@@ -61,7 +61,7 @@ const toptalCommits = () => {
|
|
|
61
61
|
fail(
|
|
62
62
|
[
|
|
63
63
|
`Commit ${commit.sha.trim()} does not meet requirements of [Commit Message Quality](https://toptal-core.atlassian.net/wiki/spaces/ENG/pages/210665897/Commit+Message+Quality):`,
|
|
64
|
-
...validationErrors
|
|
64
|
+
...validationErrors,
|
|
65
65
|
].join('\n')
|
|
66
66
|
)
|
|
67
67
|
}
|
|
@@ -69,5 +69,5 @@ const toptalCommits = () => {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
module.exports = {
|
|
72
|
-
toptalCommits
|
|
72
|
+
toptalCommits,
|
|
73
73
|
}
|
|
@@ -4,7 +4,7 @@ const {
|
|
|
4
4
|
VALID_PR_CODE_REGEX,
|
|
5
5
|
WHITELISTED_USERS,
|
|
6
6
|
DEFAULT_PR_TITLE_ERROR_MESSAGE,
|
|
7
|
-
MISSING_TICKET_CODE_ERROR_MESSAGE
|
|
7
|
+
MISSING_TICKET_CODE_ERROR_MESSAGE,
|
|
8
8
|
} = require('../../config')
|
|
9
9
|
|
|
10
10
|
const getTicketCode = text => {
|
|
@@ -58,5 +58,5 @@ const toptalPRTitle = () => {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
module.exports = {
|
|
61
|
-
toptalPRTitle
|
|
61
|
+
toptalPRTitle,
|
|
62
62
|
}
|
package/src/index.js
CHANGED
|
@@ -7,11 +7,11 @@ module.exports = {
|
|
|
7
7
|
plugins: {
|
|
8
8
|
conventionalCommit: {
|
|
9
9
|
PRTitle: conventionalCommitsPlugins.conventionalPRTitle,
|
|
10
|
-
commits: conventionalCommitsPlugins.conventionalCommits
|
|
10
|
+
commits: conventionalCommitsPlugins.conventionalCommits,
|
|
11
11
|
},
|
|
12
12
|
toptal: {
|
|
13
13
|
PRTitle: toptalPlugins.toptalPRTitle,
|
|
14
|
-
commits: toptalPlugins.toptalCommits
|
|
15
|
-
}
|
|
16
|
-
}
|
|
14
|
+
commits: toptalPlugins.toptalCommits,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
17
|
}
|