3 ms·
Is there some kind of git plug in/linter that will check for commit style before accepting a commit? Basically, linting the commit messages.
by Fede_V 12y ago
Is there some kind of git plug in/linter that will check for commit style before accepting a commit? Basically, linting the commit messages.
- candeira 12y agoAt my current gig we use a set of git hooks, and the pre-commit hook enforces the git comment style, which performs integration with bugtracking/timetracking. We wrote our own and it's just a couple of regexes tied to a couple of warnings. Look in any git project's .git/hooks/ directory for some sample scripts.
- eltaco 12y agoa pre-commit git hook? An example for jquery style commits is https://www.npmjs.com/package/commitplease https://www.npmjs.com/package/commitplease