cmt
cmt copied to clipboard
Add a validation test, to check existing commit message
I love the idea of this tool, and I'm planning to introduce it at work.
One thing I'd love to be able to do is to add a github action which would go through all the commits in a PR and validate that all the commit messages comply with the cmt template.
So, a way to run something like cmt validate [commit message here] which compares the message with the template, and exits with success/failure depending on whether the message fits the template.
That's a neat idea. I like it.
Might be tricky to fully validate certain formats - if there were a number of multi-line bits in a row, it might be hard to check them all. But for things from a list and the format more generally it should be possible.