conventional-changelog-archived-repos / validate-commit-msg

DEPRECATED. Use https://github.com/marionebl/commitlint instead. githook to validate commit messages are up to standard
http://conventionalcommits.org/
MIT License
556 stars 101 forks source link

Print entire commit message to console on failure #32

Closed erquhart closed 8 years ago

erquhart commented 8 years ago

If a developer takes time to write a solid, multiple line commit message, and the message fails the hook, they may lose the message entirely depending on how it was created.

To address this, I propose adding an option (or just changing the default behavior, sans option) to print the entire commit message on failure.

Thoughts?

kentcdodds commented 8 years ago

I definitely think this would be handy. I believe it's already supported with helpMessage. Let me know if that doesn't work for some reason.

kentcdodds commented 8 years ago

Sorry, clicked the wrong button. Please close if this resolves the issue!

erquhart commented 8 years ago

Yep, you're right, if the placeholder in helpMessage provides all content from multiple line commit messages, then we're good.

erquhart commented 8 years ago

@kentcdodds nope, looks like that placeholder only prints the first line of the commit message.

kentcdodds commented 8 years ago

Sad day. Well, feel free to makeapullrequest.com. Let me know if you need any direction.

erquhart commented 8 years ago

Nice work @Emmurillo! Closing.