Commit 1e69c34
committed
fix(commitlint): Parse breaking change headers correctly
Before this change, using a header like "fix!: Something" caused the
following commitlint errors:
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
It seems that the default header pattern does not recognize the
exclamation mark. To fix this, use the parser options from the
"conventional-changelog-conventionalcommits" template [1]. Using the
package as a parser preset would require that the NPM package is
installed, therfore copy the values from [2] instead.
[1]: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits
[2]: https://github.com/conventional-changelog/conventional-changelog/blob/bfe3bf1c49d4a125474b398b2d304749fd3b56c7/packages/conventional-changelog-conventionalcommits/parser-opts.js
Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>1 parent 813aa2b commit 1e69c34
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
4 | 12 | | |
5 | 13 | | |
6 | 14 | | |
| |||
0 commit comments