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.py
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
- Set the
GITHUB_TOKEN
environment variable with your GitHub token. You will need a GitHub token with admin permissions to thecreativecommons
GitHub organization. - Run the script:
python3 standardize_labels.py