@toptal/davinci-ci 2.0.5-alpha-SP-2753-add-danger-file-command-option.17 → 2.0.6-alpha-feat-fx-2765-subset-of-stories.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1406](https://github.com/toptal/davinci/pull/1406) [`af205861`](https://github.com/toptal/davinci/commit/af20586123c6811f657840d17f2f3161afce7ea4) Thanks [@sergiubutnarasu](https://github.com/sergiubutnarasu)! - Add option to pass custom danger file to the danger CI
8
+
3
9
  ## 2.0.4
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-ci",
3
- "version": "2.0.5-alpha-SP-2753-add-danger-file-command-option.17+4c9e919a",
3
+ "version": "2.0.6-alpha-feat-fx-2765-subset-of-stories.2+9ef8bdcd",
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.0.2",
35
- "@toptal/davinci-cli-shared": "1.5.5-alpha-SP-2753-add-danger-file-command-option.17+4c9e919a",
35
+ "@toptal/davinci-cli-shared": "1.5.5-alpha-feat-fx-2765-subset-of-stories.21+9ef8bdcd",
36
36
  "danger": "^11.0.5",
37
37
  "markdown-table": "^2.0.0"
38
38
  },
39
- "gitHead": "4c9e919a813918f0137a305a4bf5ae04436fe0cd"
39
+ "gitHead": "9ef8bdcdf89f07d038e13a39243294193d8e75b8"
40
40
  }
@@ -17,13 +17,11 @@ const commandOptions = [
17
17
  },
18
18
  {
19
19
  label: 'specify custom danger file',
20
- name: '--dangerfile',
20
+ name: '--dangerfile <dangerfile>',
21
21
  },
22
22
  ]
23
23
 
24
- const dangerCommand = args => {
25
- const { options } = args
26
-
24
+ const dangerCommand = ({ options }) => {
27
25
  print.green('Running danger check...')
28
26
 
29
27
  const { local, dangerfile, ...rest } = options
@@ -39,11 +37,6 @@ const dangerCommand = args => {
39
37
 
40
38
  let dangerfilePath = dangerfile
41
39
 
42
- print.green('Display args')
43
- print.green(args)
44
-
45
- print.green(`Display danger file dangerfilePath -- : ${dangerfilePath}`)
46
-
47
40
  if (!dangerfilePath) {
48
41
  dangerfilePath = davinciProjectConfig.master.conventionalCommits
49
42
  ? conventionalCommitsDangerfilePath
@@ -69,9 +62,6 @@ const dangerCommandCreator = {
69
62
  command: 'danger',
70
63
  description: 'Run danger check',
71
64
  options: commandOptions,
72
- types: {
73
- string: ['dangerfile'],
74
- },
75
65
  }
76
66
 
77
67
  module.exports = dangerCommandCreator