Skip to content

Commit a522e16

Browse files
committed
chore(ci): update ignores for Dependabot-style commits
1 parent a9a3054 commit a522e16

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

commitlint.config.mjs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
// .commitlint.config.mjs
2-
import conventional from '@commitlint/config-conventional';
1+
import conventional from "@commitlint/config-conventional";
32

43
export default {
5-
...conventional,
6-
rules: {
7-
'header-max-length': [2, 'always', 80],
8-
'body-max-line-length': [2, 'always', 80],
9-
},
10-
ignores: [
11-
// skip any commit whose body contains the Dependabot signature
12-
(message) => message.includes('Signed‑off‑by: dependabot[bot]'),
13-
// skip any Dependabot‑style bump header
14-
(message) => /^chore\(deps(-dev)?\): bump /.test(message),
15-
],
4+
...conventional,
5+
rules: {
6+
"header-max-length": [2, "always", 80],
7+
"body-max-line-length": [2, "always", 80],
8+
},
9+
ignores: [
10+
// bypass Dependabot-style commits
11+
(message) => /^chore\(deps(-dev)?\): bump /.test(message),
12+
(message) => /Signed-off-by: dependabot\[bot\]/.test(message),
13+
],
1614
};

0 commit comments

Comments
 (0)