-
Notifications
You must be signed in to change notification settings - Fork 920
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
Unexpected behavior for commit messages with lines with the # character #3046
Comments
Thanks, can you post an example commit? |
The error independently happens if the line with the '#' is an URL or not. With the following commit also happens
The same line without the '#' the line is identified as body (An similar error happens but about the body line length that is an current bug of the tool |
Thanks, added some formatting. |
Want to flag that this is pretty surprising since it was unclear what exactly was causing the random footer based errors so I tried several things before Googling and getting to this bug. |
Ah, I realized I had interacted with this before. This bug should be the same as #896 |
Commit message lines that have the '#' are being interpreted as part of the commit footer
instead of commit body even when the previous line is not a empty line
Expected Behavior
Lines in the middle of a paragraph with the # character (it can be part of a URL) will be analyzed as
part of commit body instead of commit footer
Current Behavior
Lines with the '#' caracter are parsed as footer lines of the commit
Affected packages
Possible Solution
Clarify the '#' usage and/or enhance the parsing of that lines
Steps to Reproduce (for bugs)
Create a git commit message that uses the '#' caracter in the body message
Context
Recomend to the user not included the '#' in the commit message body
Your Environment
git version 2.32.0
node version v14.19.0
commitlint/cli version 16.2.1
The text was updated successfully, but these errors were encountered: