A specification for adding human and machine-readable meaning to commit messages.
Read the docs: https://www.conventionalcommits.org/
Git hooks are scripts or custom executables that Git allows you to run at specific points during the version control process. These hooks enable you to customize and automate various aspects of your Git workflow.
This repository is focused on the prepare-commit-msg client-side hook:
- This hook is invoked before the commit message editor is displayed. You can use this to modify the commit message programmatically.
Creates symlink from the actual hook to point to the bash script.
make init-hooks
# Or
./git-hooks/init.sh
Make sure you've installed the bash testing library.
./install-dependencies.sh
I included several unit tests to verify the expected behaviour of the hook logic.
make tests
# or
TEST=true bin/bashunit tests/*_test.sh