Skip to content

Commit d083faa

Browse files
committed
fix(commitlint): Treat "Signed-off-by:" as a footer
Add a note keyword to the commitlint configuration that treats lines starting with "Signed-off-by:" as footers. This prevents commitlint errors if the line exceeds the max body length. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
1 parent 9a73738 commit d083faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.commitlintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parserPreset:
66
headerPattern: '^(\w*)(?:\((.*)\))?!?: (.*)$'
77
breakingHeaderPattern: '^(\w*)(?:\((.*)\))?!: (.*)$'
88
headerCorrespondence: ['type', 'scope', 'subject']
9-
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:']
9+
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:', 'Signed-off-by:']
1010
revertPattern: '/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i'
1111
revertCorrespondence: ['header', 'hash']
1212
rules:

0 commit comments

Comments
 (0)