bahmutov / pre-git

Automatically install pre-commit / pre-push hooks in your git repo
168 stars 23 forks source link

Pre-merge hook? #98

Open sospedra opened 7 years ago

sospedra commented 7 years ago

I think that would be very useful to have a pre-merge hook for master. So we can ensure that everything that goes to master passed the tests, but rely on the developer how they handle they own branches. Thoughts?

bahmutov commented 7 years ago

probably useful, and should not be difficult, there is already post-merge hook code. But I do not see pre-merge hook in the list of available Git hooks https://git-scm.com/docs/githooks