hidev icon indicating copy to clipboard operation
hidev copied to clipboard

git hooks support

Open Faryshta opened this issue 9 years ago • 1 comments

It would be nice to have git hooks handling the following events

  • pre-commit: execute hidev fix and prevent the commit if this command returns failure.
  • pre-push: execute hidev test and 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.

Faryshta avatar May 26 '16 20:05 Faryshta

'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.

hiqsol avatar May 27 '16 05:05 hiqsol