This script ensures that all active repositories in the creativecommons GitHub organization are consistent in the following ways:
- They have all the labels defined in
labels.json
present. - They have standard branch protections set up (with some exceptions).
This script will only update color and description of existing labels or create new labels. It will never delete labels.
- Install Pipenv
- Navigate to the
normalize_repos
folder and runpipenv install --dev
- Set the
ADMIN_GITHUB_TOKEN
environment variable with your GitHub token. You will need a GitHub token with admin permissions to thecreativecommons
GitHub organization. - Run the script:
pipenv run normalize_repos.py
See repository README for licensing information, etc: