Python module and script to manage GitHub labels the saner way:
- create or edit sane labels using labels definitions in JSON files
- dump your existing precious labels into JSON file
- PyGithub 1.56
pip install gh-label-maker
Output of python github-label-maker.py -h
should be self-explanatory.
If it is not, there are three modes of operation:
- clear all labels using
--clear
- add or update labels from files with labels definitions
- from single file
--make-labels-from=/my/scheme/default.json
- from multiple files
--make-labels-from=/my/scheme
- from single file
- dump all labels using
--dump-labels-to=/my/labels.json
# get the source
git clone https://github.com/mloskot/github-label-maker.git
# install source in editable mode
cd github-label-maker
pip install -e .
# develop and make a pull request!
- @GlennWSo contributed fixes, release and package for PIP