You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Code of Conduct
Is there an existing issue for this?
Are you willing to sponsor your idea?
Is your feature request related to a problem? Please describe
I am trying to fail if a commit message starts with
fixup
orsquash
. 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 tofalse
(current behavior). Setting totrue
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
The text was updated successfully, but these errors were encountered: