-
Notifications
You must be signed in to change notification settings - Fork 58
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
Clarification on recent multi-line change #80
Comments
It appears to work if you use |
Is this because when using an editor it usually adds a newline at the end of the file, tripping up the regex? |
@nikolaik sort of but the opposite. The editor adds comments. The regex sees this as multiline and therefore requires an additional blank line. So the fix would be to treat comments as comments and determine the message as a single line and therefore no blankline is required. Example of the breaking commit in the editor below:
|
Thank you @snuggie12 and @nikolaik for the report and conversation. I'd say this is a bug in our implementation -- we should definitely support commit messages from an editor, in addition to the command line. My workflow is mostly the latter, so I probably missed this detail for editor-based messages. A PR to fix this would be most welcome! |
Gave a try at handling this in #87 |
Thanks again for the report @snuggie12 and your work on this @nikolaik |
In #68 there's now a check for an extra blank line. Given the wording in the release notes and in the output message if you fail the check I more read this as you need a blank line
if
you have a body:I require a blank line even if I don't supply a body.
I think there are a few possibilities here:
If the 2nd one, what do you think about drawing more attention to it in the program? Can it be made bold or surrounded by
***
or something to draw attention to it for a few versions and then special messaging can be deprecated?The text was updated successfully, but these errors were encountered: