Skip to content

Commit

Permalink
fix(commitlint): Treat "Signed-off-by:" as a footer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mnonnenmacher committed Jan 19, 2023
1 parent 9a73738 commit d083faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .commitlintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parserPreset:
headerPattern: '^(\w*)(?:\((.*)\))?!?: (.*)$'
breakingHeaderPattern: '^(\w*)(?:\((.*)\))?!: (.*)$'
headerCorrespondence: ['type', 'scope', 'subject']
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:']
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:', 'Signed-off-by:']
revertPattern: '/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i'
revertCorrespondence: ['header', 'hash']
rules:
Expand Down

0 comments on commit d083faa

Please sign in to comment.