-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
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
"footer-empty" rule does not recognize footer #3034
Comments
Thanks, this seems to be broken. I could be wrong but it also looks like as if the test is wrong in the first place? filled: 'test: subject\nBREAKING CHANGE: something important', But I would think it should more look like this?: filled: 'test: subject\nBREAKING CHANGE: something important\nA footer might be here', This seems to be wrong in all footer related tests. Either I'm reading it wrong or it was broken form the beginning? Would you have time and motivation for a PR? |
@escapedcat I'm not an expert on conventional-commit conventions, but my read of of the docs suggests that a "BREAKING CHANGE" line would actually be used as a footer; e.g., see the docs here. |
Thanks! You're right. In this case our tests make sense which is a relief :P In this case I'm wondering how the current code is parsing the footer or recognises a footer. |
Also noticed the same behaviour when I allow empty body, but not allow empty footer. Then:
fails, because |
Hmm footer not parsed if we use |
I'm trying to use the
footer-empty
rule fined in the documentation but it seems to be erroneously flagging my footer as not present.Expected Behavior
This is my configuration:
As a result, I expected this commit to work:
Current Behavior
Currently, I get this error when I commit the code:
My Environment
commitlint --version
@commitlint/cli": "^16.2.1"
git --version
git version 2.32.0 (Apple Git-132)
node --version
Node.js v17.5.0
The text was updated successfully, but these errors were encountered: