cmt icon indicating copy to clipboard operation
cmt copied to clipboard

Add a validation test, to check existing commit message

Open digitalronin opened this issue 5 years ago • 1 comments

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.

digitalronin avatar Jan 27 '20 15:01 digitalronin

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.

smallhadroncollider avatar Jan 27 '20 15:01 smallhadroncollider