https://github.com/mloskot/github-label-maker
Python module to add, remove, edit and dump GitHub labels easily
https://github.com/mloskot/github-label-maker
github github-labels pygithub pygithub-examples python python-script
Last synced: about 2 months ago
JSON representation
Python module to add, remove, edit and dump GitHub labels easily
- Host: GitHub
- URL: https://github.com/mloskot/github-label-maker
- Owner: mloskot
- License: unlicense
- Created: 2018-03-26T21:11:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T12:42:01.000Z (over 2 years ago)
- Last Synced: 2025-03-20T14:23:03.548Z (2 months ago)
- Topics: github, github-labels, pygithub, pygithub-examples, python, python-script
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-label-maker
Python module and script to manage GitHub labels the saner way:
* create or edit [sane labels](https://medium.com/@dave_lunny/sane-github-labels-c5d2e6004b63) using labels definitions in JSON files
* dump your existing precious labels into JSON file## Requirements
* [PyGithub](https://github.com/PyGithub/PyGithub) 1.56
## 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
```bash
# 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](https://github.com/GlennWSo) contributed fixes, release and package for PIP