conventional-changelog-conventionalcommits 4.2.2 → 4.2.3

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.2.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.2.2...conventional-changelog-conventionalcommits@4.2.3) (2019-11-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * revertPattern match default git revert format ([#545](https://github.com/conventional-changelog/conventional-changelog/issues/545)) ([fe449f8](https://github.com/conventional-changelog/conventional-changelog/commit/fe449f899567574a36d1819b313e2caa899052ff))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.2.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-conventionalcommits@4.2.1...conventional-changelog-conventionalcommits@4.2.2) (2019-10-24)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-changelog-conventionalcommits",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "conventional-changelog conventionalcommits.org preset",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -38,5 +38,5 @@
38
38
  "lodash": "^4.17.15",
39
39
  "q": "^1.5.1"
40
40
  },
41
- "gitHead": "e865af4df8d06795cebc7af09364ade19119e089"
41
+ "gitHead": "741e90744cdb58e82e71feb36018047d7baca768"
42
42
  }
package/parser-opts.js CHANGED
@@ -11,7 +11,7 @@ module.exports = function (config) {
11
11
  `subject`
12
12
  ],
13
13
  noteKeywords: [`BREAKING CHANGE`],
14
- revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
14
+ revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
15
15
  revertCorrespondence: [`header`, `hash`],
16
16
  issuePrefixes: config.issuePrefixes
17
17
  }
package/writer-opts.js CHANGED
@@ -65,7 +65,7 @@ function getWriterOpts (config) {
65
65
  transform: (commit, context) => {
66
66
  let discard = true
67
67
  const issues = []
68
- const typeKey = (commit.type || '').toLowerCase()
68
+ const typeKey = (commit.revert ? 'revert' : (commit.type || '')).toLowerCase()
69
69
 
70
70
  // adds additional breaking change notes
71
71
  // for the special case, test(system)!: hello world, where there is