does github support precommithooks?

Coen picture Coen · Dec 16, 2011 · Viewed 17.2k times · Source

Currently we are using SVN. I would like to start using GitHub, but one absolute requirement is that we will need to have precommit (premerge) validation of the code like we currently have. Does GitHub support precommithooks (premergehooks)?

We're a team of 5 developers. We made an agreement that all code (JavaScript) should pass JSLint-like validation. Voluntary validation has proven not to work because it's easily forgotten. How can we be sure that code that becomes available to the others is guaranteed to validate against JSLint (or similar)?

Answer

Coen picture Coen · Dec 31, 2012

The concept I was looking for was the prereceive hook