This script will quickly set up post commit hooks on all repositories in an organization (or a user if you change a line).
Install the requirements for the script with:
pip install -r requirements.txtTo run the script, you will need several environment variables defined. These are:
GITHUB_USERGITHUB_PASSWORDGITHUB_ORGANIZATION
You can easily define them when running the script with:
GITHUB_USER='streeter' GITHUB_PASSWORD='XXXXX' GITHUB_ORGANIZATION='some-org' ./setup_hooks.pyOr, you can set them as arguments to the setup_hooks.py script. Run the script
with the -h option to see them all.