Skip to content

Commit b268ce5

Browse files
build: add commitlint exception for Dependabot (#331)
Dependabot commit messages are prefixed by `build(deps):`. Adding an exception for the `build` prefix. Signed-off-by: Simon Pasquier <[email protected]>
1 parent cabf93f commit b268ce5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

commitlint.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const Configuration = {
2+
/*
3+
* Resolve and load @commitlint/config-conventional from node_modules.
4+
*/
5+
extends: ['@commitlint/config-conventional'],
6+
/*
7+
* Ignore dependabot commit messages until https://github.com/dependabot/dependabot-core/issues/2445 is fixed.
8+
*/
9+
ignores: [(msg) => /Signed-off-by: dependabot\[bot]/m.test(msg)],
10+
};
11+
12+
module.exports = Configuration;

0 commit comments

Comments
 (0)