Open
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Are you willing to sponsor your idea?
- Yes, I like to sponsor this request
Is your feature request related to a problem? Please describe
I am trying to fail if a commit message starts with fixup
or squash
. I am also trying to fail if a message contains [no-merge]
. It is far easier to check for the existence of these things than confirm the negative.
Describe the solution you'd like
A new flag: failOnMatch
. It defaults to false
(current behavior). Setting to true
will fail if the pattern matches on a commit.
Describe alternatives you've considered
RegExp negative lookahead. Ugh. Not easy to understand for the next person to look at the code. (AKA me, in five minutes.)
Additional context
No response
Activity