Framework for implementing Git (and Gerrit) hooks