@toptal/davinci-ci 2.0.1-alpha-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.14 → 2.0.1-alpha-fx-2723-e2e-to-integration-migration-script.17

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": "2.0.1-alpha-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.14+c13758f5",
3
+ "version": "2.0.1-alpha-fx-2723-e2e-to-integration-migration-script.17+0c76c7cb",
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-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.125+c13758f5",
35
+ "@toptal/davinci-cli-shared": "1.5.2-alpha-fx-2723-e2e-to-integration-migration-script.128+0c76c7cb",
36
36
  "danger": "^11.0.5",
37
37
  "markdown-table": "^2.0.0"
38
38
  },
39
- "gitHead": "c13758f5f00767532548632e8fe6e5fa4d41a47e"
39
+ "gitHead": "0c76c7cbaa05e3fdfe6a6baea58740b84123b2b9"
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
- /* globals danger, fail */
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
  MAX_COMMIT_LINE_LENGTH,
4
3
  VALID_COMMIT_TITLE_REGEX,
@@ -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