summaryrefslogtreecommitdiff
path: root/.github/workflows/commitlint.config.js
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-05-25 13:35:38 +0200
committerkylo252 <[email protected]>2022-05-25 13:35:38 +0200
commitfc63a66ce8d26ab7acf5e178b85d0f69b097ca7e (patch)
tree1dc5ddb0ec1cdd1d225ded33f157a890699fc348 /.github/workflows/commitlint.config.js
parentaa4c9930d9131c60d7a6f2e9bec8a2f3ba6c4055 (diff)
parent6dbba1f9597e0ba090702aea41357c29874aab7c (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to '.github/workflows/commitlint.config.js')
-rw-r--r--.github/workflows/commitlint.config.js11
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-'],
+ },
+ },
};