Skip to content

Commit

Permalink
fix(commitlint): Treat Markdown bottom links as footers
Browse files Browse the repository at this point in the history
Add a note keyword to the commitlint configuration that treats markdown
bottom links as footers. Otherwise long URLs that exceed the max body
length would cause commitlint errors.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.io>
  • Loading branch information
mnonnenmacher committed Jan 19, 2023
1 parent 1e69c34 commit 9a73738
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']
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:']
revertPattern: '/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i'
revertCorrespondence: ['header', 'hash']
rules:
Expand Down

0 comments on commit 9a73738

Please sign in to comment.