git-commit-msg-linter
git-commit-msg-linter copied to clipboard
Run in command line
trafficstars
Is it possible to run the script for a range of commits from command line?
Something like:
commit-msg-linter sha1 sha2
So it can be ran from CI to make sure every commit message from sha1 and sha2 are valid.
~it can't. You can check it out in https://github.com/legend80s/commit-msg-linter#how-it-works~
How to get the commit messages from sha1 to sha2?
How to get the commit messages from sha1 to sha2?
git log sha1..sha2 --pretty=format:%s
output
msg1
msg2
msg3
What is your expected output of commit-msg-linter sha1 sha2? Just exit with code 1 and print the invalid msg list?