@toptal/davinci-ci 2.0.1-alpha-fx-2815-trailing-comma--eslint.16 → 2.0.1-alpha-FX-2734-upgrade-cypress.14
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/configs/danger/conventional-commits/plugins/conventional-commits/index.js +1 -7
- package/src/configs/danger/conventional-commits/plugins/conventional-pr-title/index.js +1 -3
- package/src/configs/danger/toptal/config.js +1 -5
- package/src/configs/danger/toptal/plugins/toptal-commits/index.js +0 -1
- package/src/configs/danger/toptal/plugins/toptal-pr-title/index.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-FX-2734-upgrade-cypress.14+ac801e68",
|
|
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.2-alpha-
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.5.2-alpha-FX-2734-upgrade-cypress.125+ac801e68",
|
|
36
36
|
"danger": "^11.0.5",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ac801e68bf3fb45dc8769c859f14632885734b7e"
|
|
40
40
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
/* globals danger, fail */
|
|
2
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
1
|
const { default: load } = require('@commitlint/load')
|
|
4
2
|
const { default: lint } = require('@commitlint/lint')
|
|
5
|
-
/* eslint-enable */
|
|
6
3
|
const table = require('markdown-table')
|
|
7
4
|
|
|
8
5
|
const { WHITELISTED_USERS } = require('../../../toptal/config')
|
|
9
6
|
|
|
10
7
|
const conventionalCommits = async () => {
|
|
11
|
-
if (
|
|
12
|
-
danger.github &&
|
|
13
|
-
WHITELISTED_USERS.includes(danger.github.pr.user.login)
|
|
14
|
-
) {
|
|
8
|
+
if (danger.github && WHITELISTED_USERS.includes(danger.github.pr.user.login)) {
|
|
15
9
|
return
|
|
16
10
|
}
|
|
17
11
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="danger" />
|
|
2
|
-
|
|
3
|
-
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
+
|
|
4
3
|
const { default: load } = require('@commitlint/load')
|
|
5
4
|
const { default: lint } = require('@commitlint/lint')
|
|
6
|
-
/* eslint-enable */
|
|
7
5
|
const table = require('markdown-table')
|
|
8
6
|
|
|
9
7
|
const { WHITELISTED_USERS } = require('../../../toptal/config')
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
const WHITELISTED_USERS = [
|
|
2
|
-
'dependabot-preview[bot]',
|
|
3
|
-
'dependabot[bot]',
|
|
4
|
-
'toptal-devbot'
|
|
5
|
-
]
|
|
1
|
+
const WHITELISTED_USERS = ['dependabot-preview[bot]', 'dependabot[bot]', 'toptal-devbot']
|
|
6
2
|
const VALID_PR_CODE_REGEX = /\[[A-Z]{1,5}-.*]\s/
|
|
7
3
|
// Valid commit titles:
|
|
8
4
|
// "Regular commit message"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* globals danger, fail */
|
|
2
1
|
const {
|
|
3
2
|
VALID_COMMIT_TITLE_REGEX,
|
|
4
3
|
VALID_PR_CODE_REGEX,
|
|
@@ -37,7 +36,6 @@ const toptalPRTitle = () => {
|
|
|
37
36
|
|
|
38
37
|
if (!ticketCode && !labelNames.includes('no-jira')) {
|
|
39
38
|
showError(MISSING_TICKET_CODE_ERROR_MESSAGE)
|
|
40
|
-
|
|
41
39
|
return
|
|
42
40
|
}
|
|
43
41
|
|
|
@@ -45,7 +43,6 @@ const toptalPRTitle = () => {
|
|
|
45
43
|
|
|
46
44
|
if (!splitTitle.length) {
|
|
47
45
|
showError()
|
|
48
|
-
|
|
49
46
|
return
|
|
50
47
|
}
|
|
51
48
|
|