@toptal/davinci-ci 2.0.14-alpha-FX-3285-assigne-dangerjs-rule-c0bb61ff.59 → 2.0.14-alpha-feature-fx-1939-collect-davinci-metrics-efa08b80.73

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/bin/davinci-ci.js CHANGED
@@ -4,5 +4,5 @@ const cliEngine = require('@toptal/davinci-cli-shared')
4
4
 
5
5
  const { commands } = require('../src')
6
6
 
7
- cliEngine.loadCommands(commands)
7
+ cliEngine.loadCommands(commands, 'davinci-ci')
8
8
  cliEngine.bootstrap()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-ci",
3
- "version": "2.0.14-alpha-FX-3285-assigne-dangerjs-rule-c0bb61ff.59+c0bb61ff",
3
+ "version": "2.0.14-alpha-feature-fx-1939-collect-davinci-metrics-efa08b80.73+efa08b80",
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": "^17.0.2",
34
34
  "@commitlint/config-conventional": "^17.1.0",
35
- "@toptal/davinci-cli-shared": "1.8.2-alpha-FX-3285-assigne-dangerjs-rule-c0bb61ff.105+c0bb61ff",
35
+ "@toptal/davinci-cli-shared": "1.8.2-alpha-feature-fx-1939-collect-davinci-metrics-efa08b80.119+efa08b80",
36
36
  "danger": "^11.0.7",
37
37
  "markdown-table": "^2.0.0"
38
38
  },
39
- "gitHead": "c0bb61ff07cc01a4a53e9e725bc664ef70128295"
39
+ "gitHead": "efa08b80844f1832ba6130d7bceb0952eebf8e57"
40
40
  }
@@ -1,17 +1,7 @@
1
1
  const { schedule } = require('danger')
2
- const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
3
2
 
4
3
  const { conventionalCommits } = require('./plugins/conventional-commits')
5
4
  const { conventionalPRTitle } = require('./plugins/conventional-pr-title')
6
- const { emptyAssignee } = require('../plugins/empty-assignee')
7
5
 
8
6
  schedule(conventionalCommits)
9
7
  schedule(conventionalPRTitle)
10
-
11
- const {
12
- master: { forceAssigne },
13
- } = davinciProjectConfig
14
-
15
- if (forceAssigne) {
16
- schedule(emptyAssignee)
17
- }
@@ -1,17 +1,7 @@
1
1
  const { schedule } = require('danger')
2
- const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
3
2
 
4
3
  const { toptalCommits } = require('./plugins/toptal-commits')
5
4
  const { toptalPRTitle } = require('./plugins/toptal-pr-title')
6
- const { emptyAssignee } = require('../plugins/empty-assignee')
7
5
 
8
6
  schedule(toptalCommits)
9
7
  schedule(toptalPRTitle)
10
-
11
- const {
12
- master: { forceAssigne },
13
- } = davinciProjectConfig
14
-
15
- if (forceAssigne) {
16
- schedule(emptyAssignee)
17
- }
@@ -1,22 +0,0 @@
1
- /// <reference types="danger" />
2
- /* globals danger, fail */
3
- const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
4
-
5
- const {
6
- master: { forceAssigneWhiteList = ['dependabot-preview[bot]'] },
7
- } = davinciProjectConfig
8
-
9
- const WHITELISTED_USERS = forceAssigneWhiteList
10
- const emptyAssignee = () => {
11
- if (WHITELISTED_USERS.includes(danger.github.pr.user.login)) {
12
- return
13
- }
14
-
15
- if (!danger.github.pr.assignee || danger.github.pr.assignees.length === 0) {
16
- fail('Please assign someone to this PR before merging.')
17
- }
18
- }
19
-
20
- module.exports = {
21
- emptyAssignee,
22
- }