@channel Is anyone doing any 'Commit Message' vali...
# sdf
d
@channel Is anyone doing any 'Commit Message' validation in their stack? I'm looking at https://github.com/typicode/husky to help out. Look for insights from anyone else. In a nutshell, I want to enforce Commit message to format a 'Smart Commit' (JIRA) Slack Conversation
b
My build process currently uses commitlint to enforce "conventional commit" style formats. It wouldn't surprise me if there were something out there for JIRA smart commits too.
commitlint also has a cli that extends git to help enforce your commit rules.
c
You can setup templates to help as well so your commit messages always have some components in them. Its tool dependent though so you'd have to do a little looking around.
b
Looks like https://github.com/Gherciu/commitlint-jira use both husky and commitlint
e
Thanks gents!
c
Worst case you can edit the commit message 😄
Not directly related, but I also like to squash my commits now before merging or creating a pull request. You lose commit history but I don't really care if I'm ready to merge it. I think it gives your repos a much cleaner feel but at the cost of losing commit history (if you care at all)
👍 2