We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A commit message like the following: (Note: after Body line 23. there are 2 new lines. No space.)
Body line 23.
My commit Body line 23. JIRA-123
Should be accepted with bare config like
"body-full-stop": [2, "always"], "body-leading-blank": [2, "always"], "footer-leading-blank": [2, "always"],
For some reason, the above message is rejected with the message
body must end with full stop [body-full-stop]
It somehow treats the JIRA-1234 as part of the body, not as the footer.
JIRA-1234
Replacing - (dash) with # (e.g. JIRA#1234) makes commitlint treat the footer as a footer. All is good.
-
#
No response
{ "rules": { "body-full-stop": [2, "always"], "body-leading-blank": [2, "always"], "footer-leading-blank": [2, "always"], } }
JIRA#123
We always write our ticket number in the footer. That's something like "ZYX-1234". Using commitlint would prevent us from doing so.
@commitlint/cli@7.8.0
2.42.0.windows.2
18.18.2
The text was updated successfully, but these errors were encountered:
Does #JIRA-123 work?
#JIRA-123
Sorry, something went wrong.
Yes, @escapedcat that works. JIRA-123. also works. So does #123.
JIRA-123.
#123
From what I tested, JIRA-1234 and JIRA-1234# and 123 does not work (the last two don't make much sense tho 🙃 )
JIRA-1234#
123
Note: according to conventionalcommits the JIRA-1234 should also work.
No branches or pull requests
Expected Behavior
A commit message like the following:
(Note: after
Body line 23.
there are 2 new lines. No space.)Should be accepted with bare config like
Current Behavior
For some reason, the above message is rejected with the message
It somehow treats the
JIRA-1234
as part of the body, not as the footer.Replacing
-
(dash) with#
(e.g. JIRA#1234) makes commitlint treat the footer as a footer. All is good.Affected packages
Possible Solution
No response
Steps to Reproduce
JIRA#123
and the error is goneContext
We always write our ticket number in the footer. That's something like "ZYX-1234".
Using commitlint would prevent us from doing so.
commitlint --version
@commitlint/cli@7.8.0
git --version
2.42.0.windows.2
node --version
18.18.2
The text was updated successfully, but these errors were encountered: