-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Labels
buildIssues with building ORTIssues with building ORTconfigurationAbout configuration topicsAbout configuration topicstech debtTechnical debt that should be addressedTechnical debt that should be addressed
Description
Since the introduction of conventional commits and commitlint to enforce them we've faced various issues with commitlint, resulting in work-arounds like
Lines 5 to 11 in 2ce4322
parserOpts: | |
headerPattern: '^(\w*)(?:\((.*)\))?!?: (.*)$' | |
breakingHeaderPattern: '^(\w*)(?:\((.*)\))?!: (.*)$' | |
headerCorrespondence: ['type', 'scope', 'subject'] | |
noteKeywords: ['BREAKING CHANGE', 'BREAKING-CHANGE', '\[\d+\]:', 'Signed-off-by:'] | |
revertPattern: '/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i' | |
revertCorrespondence: ['header', 'hash'] |
Also the configuration syntax sucks quite frankly, like in
Lines 13 to 15 in 727fc5b
body-leading-blank: | |
- 2 | |
- always |
what the heck is "2" supposed to mean? Let alone the bugs.
As conventional commit can easily be checked via regexes, I propose to instead switch to a generic tool like https://github.com/GsActions/commit-message-checker that can also be configured to check for some of our other non-conventional-commits requirements.
Opinions, @oss-review-toolkit/core-devs?
Edit: Collecting ideas for alternatives
Metadata
Metadata
Assignees
Labels
buildIssues with building ORTIssues with building ORTconfigurationAbout configuration topicsAbout configuration topicstech debtTechnical debt that should be addressedTechnical debt that should be addressed