Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git hooks support #1

Open
Faryshta opened this issue May 26, 2016 · 1 comment
Open

git hooks support #1

Faryshta opened this issue May 26, 2016 · 1 comment

Comments

@Faryshta
Copy link

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.
@hiqsol
Copy link
Member

hiqsol commented May 27, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants