diff options
Diffstat (limited to '.github/workflows/commitlint.config.js')
-rw-r--r-- | .github/workflows/commitlint.config.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/commitlint.config.js b/.github/workflows/commitlint.config.js index 06cc7866..53ec4b76 100644 --- a/.github/workflows/commitlint.config.js +++ b/.github/workflows/commitlint.config.js @@ -32,4 +32,15 @@ module.exports = { ], ], }, + /* + add a custom parser to handle exclamation marks in a commit + see: https://github.com/conventional-changelog/commitlint/issues/2226#issuecomment-911749509 + */ + parserPreset: { + parserOpts: { + headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/, + referenceActions: null, + issuePrefixes: ['ISS-'], + }, + }, }; |