cz-conventional-changelog 3.1.1 → 3.2.0

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.
Files changed (3) hide show
  1. package/README.md +14 -6
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -17,25 +17,33 @@ Like commitizen, you specify the configuration of cz-conventional-changelog thro
17
17
  {
18
18
  // ... default values
19
19
  "config": {
20
- "commitizen": {
20
+ "commitizen": {
21
21
  "path": "./node_modules/cz-conventional-changelog",
22
22
  "maxHeaderWidth": 100,
23
23
  "maxLineWidth": 100,
24
24
  "defaultType": "",
25
- "defaultScope": "",
25
+ "defaultScope": "",
26
26
  "defaultSubject": "",
27
27
  "defaultBody": "",
28
- "defaultIssues": ""
28
+ "defaultIssues": "",
29
+ "types": {
30
+ ...
31
+ "feat": {
32
+ "description": "A new feature",
33
+ "title": "Features"
34
+ },
35
+ ...
36
+ }
29
37
  }
30
38
  }
31
- // ...
39
+ // ...
32
40
  }
33
- ```
41
+ ```
34
42
  ### Environment variables
35
43
 
36
44
  The following environment varibles can be used to override any default configuration or package.json based configuration.
37
45
 
38
- * CZ_TYPE = defaultType
46
+ * CZ_TYPE = defaultType
39
47
  * CZ_SCOPE = defaultScope
40
48
  * CZ_SUBJECT = defaultSubject
41
49
  * CZ_BODY = defaultBody
package/index.js CHANGED
@@ -6,7 +6,7 @@ var configLoader = require('commitizen').configLoader;
6
6
 
7
7
  var config = configLoader.load() || {};
8
8
  var options = {
9
- types: conventionalCommitTypes.types,
9
+ types: config.types || conventionalCommitTypes.types,
10
10
  defaultType: process.env.CZ_TYPE || config.defaultType,
11
11
  defaultScope: process.env.CZ_SCOPE || config.defaultScope,
12
12
  defaultSubject: process.env.CZ_SUBJECT || config.defaultSubject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cz-conventional-changelog",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Commitizen adapter following the conventional-changelog format.",
5
5
  "main": "index.js",
6
6
  "scripts": {