Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow multiline commit messages when using a custom .cz.toml #264
Comments
|
Probably we should add some notes to the prompt information? If it is possible, please feel free to assign this issue to me. |
|
Yes, we definitely should improve the message. Thanks for your help I'm not sure the idea of the quote is what we wanted. What is the expected behavior if we have a |
|
I'm neutral to this one since multiple-line does not bother me at all recently haha. I'm curious whether there's tool that can help us make this |
|
Yeah, I also have concern about it. I should make some survey. |
I assume this is something that needs to be configured manually if you're using a customized config? That's what I'm doing, and the |
|
@FelixAbrahamsson Yes, it uses the filter here |
|
Right, that's what I was trying to do with the |
|
I think custom class configuration should work in this case |


Description
I would like to be able to write multiline commit messages, however this does not seem to be possible when configuring commitizen using .cz.toml.
Possible Solution
Based off of #74 it seems to work when you customize commitizen via a class, however the
filterparameter in .cz.toml doesn't seem to work for this use case currently (it gives meValueError: 'filter' needs to be function that accepts an argumentno matter what I input).One suggestion would be if you could enclose your commit message in double quotes, and any
enterkeypress within those double quotes would just input a newline to the commit message instead of ending the text input. Another suggestion would be if you could specify a parametermultilineor similar which upon asking the question opens up a default editor (nano/vim) where the user writes their message, just like how git does withgit commit.