Using Yelp’s Pre-Commit Hooks | Everything Technical (and more) @ Hootsuite
Not Under Version Control?Really? Yes. As these git hooks only exist on your local machine, they are never under version control. Whoa. Naturally, this leads to some questions:
- How can we maintain these scripts?
- How do we ensure everyone in the team will use the same set of scripts every time they commit to the respective repositories?
- How can we support git hooks for multiple languages in our polyglot team of PHP, Python, and Javascript engineers?
There are a few solutions for git pre-commit hooks that are out there for various languages, but in recent months, Yelp released the pre-commit project to the open source community and caught our attention.
A pre-commit by Yelp is “a framework for managing and maintaining multi-language pre-commit hooks”. We took a liking to it because it’s a framework, easy to setup, non-invasive, and easy to extend.
Read full article from Using Yelp’s Pre-Commit Hooks | Everything Technical (and more) @ Hootsuite
No comments:
Post a Comment