hidev
hidev copied to clipboard
git hooks support
It would be nice to have git hooks handling the following events
- pre-commit: execute
hidev fixand prevent the commit if this command returns failure. - pre-push: execute
hidev testand prevent the push if this command returns failure. - post-merge: check if composer.json or composer.lock got updated and execute composer update.
- commit-msg a configurable event to handle if the commit message is valid. For example require the commit to contain [enh], [fix], [bug], [docs] tags.
'hook' action can be added to GitController to create all configured hooks. Configuration should look like:
git:
pre-commit: fix
pre-push: test
Then hooks are installed with hidev git/hook command.