Skip to content

Commit cd6497a

Browse files
author
Guillaume Gautreau
committed
chore: merge branch 'ci/allow-longer-commit-messages' into chore/merge-master-into-beta
2 parents 920f496 + 5e289c9 commit cd6497a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

commitlint.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
// so authorizing 4+5 = 9 characters more on master for the max header length should work
44
// until we reach PR #99999.
55

6-
let maxHeaderLength = 100;
6+
let maxLineLength = 100;
77

88
const prExtrasChars = 9;
99

1010
const isPushEvent = process.env.GITHUB_EVENT_NAME === 'push';
1111

1212
if (isPushEvent) {
13-
maxHeaderLength += prExtrasChars;
13+
maxLineLength += prExtrasChars;
1414
}
1515

1616
module.exports = {
17-
extends: ['@commitlint/config-conventional'],
18-
rules: { 'header-max-length': [2, 'always', maxHeaderLength] },
17+
extends: ['@commitlint/config-conventional'],
18+
'header-max-length': [1, 'always', maxLineLength],
19+
'body-max-line-length': [1, 'always', maxLineLength],
20+
'footer-max-line-length': [1, 'always', maxLineLength],
1921
};

0 commit comments

Comments
 (0)