Skip to content

Python module to add, remove, edit and dump GitHub labels easily

License

Notifications You must be signed in to change notification settings

mloskot/github-label-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-label-maker

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

Requirements

Installation

pip install gh-label-maker

Usage

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
  • dump all labels using --dump-labels-to=/my/labels.json

Contribute

# 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!

Credits

  • @GlennWSo contributed fixes, release and package for PIP