DEV Community

loading...

Discussion on: How To Enforce Conventional Commit Messages Using GIT Hooks

Collapse
prahladyeri profile image
Prahlad Yeri Author

Thanks for the suggestion. I've implemented a more graceful error message in the updated version:

> git commit -m "added a new feature for xyz"

COMMIT FAILED!

Please enter commit message in the conventional format and try to commit again. Examples:

+ 61c8ca9 fix: navbar not responsive on mobile
+ 479c48b test: prepared test cases for user authentication
+ a992020 chore: moved to semantic versioning
+ b818120 fix: button click even handler firing twice
+ c6e9a97 fix: login page css
+ dfdc715 feat(auth): added social login using twitter