@toptal/davinci-ci 3.1.1-alpha-fx-2975-refactor-davinci-engine-to-esm-ce970fda.16 → 3.1.1-alpha-fx-2975-refactor-davinci-engine-to-esm-05b2953b.28
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": "3.1.1-alpha-fx-2975-refactor-davinci-engine-to-esm-
|
|
3
|
+
"version": "3.1.1-alpha-fx-2975-refactor-davinci-engine-to-esm-05b2953b.28+05b2953b",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@commitlint/cli": "^17.4.0",
|
|
37
37
|
"@commitlint/config-conventional": "^17.1.0",
|
|
38
|
-
"@toptal/davinci-cli-shared": "1.10.3-alpha-fx-2975-refactor-davinci-engine-to-esm-
|
|
38
|
+
"@toptal/davinci-cli-shared": "1.10.3-alpha-fx-2975-refactor-davinci-engine-to-esm-05b2953b.30+05b2953b",
|
|
39
39
|
"danger": "^11.0.7",
|
|
40
40
|
"markdown-table": "^2.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "28.1.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "05b2953bb83f7f12608603948ee0d9000eda05b4"
|
|
46
46
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const { schedule } = require('danger')
|
|
2
|
-
const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
|
|
3
2
|
|
|
4
3
|
const { conventionalCommits } = require('./plugins/conventional-commits/index.cjs')
|
|
5
4
|
const { conventionalPRTitle } = require('./plugins/conventional-pr-title/index.cjs')
|
|
@@ -9,10 +8,15 @@ const { checkAssigneeExist } = require('../plugins/empty-assignee.cjs')
|
|
|
9
8
|
schedule(conventionalCommits)
|
|
10
9
|
schedule(conventionalPRTitle)
|
|
11
10
|
|
|
12
|
-
const {
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const setup = async () => {
|
|
12
|
+
const { davinciProjectConfig } = await import('@toptal/davinci-cli-shared')
|
|
13
|
+
const {
|
|
14
|
+
master: { requireAssignee },
|
|
15
|
+
} = davinciProjectConfig
|
|
15
16
|
|
|
16
|
-
if (requireAssignee) {
|
|
17
|
-
|
|
17
|
+
if (requireAssignee) {
|
|
18
|
+
schedule(checkAssigneeExist)
|
|
19
|
+
}
|
|
18
20
|
}
|
|
21
|
+
|
|
22
|
+
module.exports.default = setup
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="danger" />
|
|
2
2
|
/* globals danger, fail */
|
|
3
|
-
const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
|
|
4
3
|
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const setup = async () => {
|
|
5
|
+
const { davinciProjectConfig } = await import('@toptal/davinci-cli-shared')
|
|
6
|
+
const {
|
|
7
|
+
master: { requireAssigneeWhiteList = [] },
|
|
8
|
+
} = davinciProjectConfig
|
|
9
|
+
|
|
10
|
+
const WHITELISTED_USERS = requireAssigneeWhiteList
|
|
8
11
|
|
|
9
|
-
const WHITELISTED_USERS = requireAssigneeWhiteList
|
|
10
|
-
const checkAssigneeExist = () => {
|
|
11
12
|
const isLocalRun = !danger.github
|
|
12
13
|
|
|
13
14
|
if (isLocalRun || WHITELISTED_USERS.includes(danger.github.pr.user.login)) {
|
|
@@ -19,6 +20,10 @@ const checkAssigneeExist = () => {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
const checkAssigneeExist = () => {
|
|
24
|
+
setup()
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
module.exports = {
|
|
23
28
|
checkAssigneeExist,
|
|
24
29
|
}
|