Git hooks for better pivotal integration:
pre-commit:- prevents commiting on a branch that is not suffixed by an issue number. Some special branches (
develop,master) andhotfixes are not constrained - lints modified python files and exits upon non correctly formatted modules
- other formats (js, scss) have pending code that is not currently called as the workflow for front code is not clear
- prevents commiting on a branch that is not suffixed by an issue number. Some special branches (
prepare-commit-msg: prepend issue number to commit message if it's missing and if it is set in the branch name (seepre-commithook)post-checkout: [optional] automatically update submodules when checkouting a branch (requires to define theAUTO_SUBMODULE_UPDATEenvironment variable)
For easy setup: