labelord

https://travis-ci.org/JBlackN/labelord_schmipe5.svg?branch=master Documentation Status

Global multi-project management of GitHub labels (MI-PYT@FIT CTU project).

This project is reference solution for Labelord tasks series in cvut/MI-PYT.

About

This Python app allows user to do via CLI:

  • List repositories
  • List labels for given repository
  • Run update/replace labels for multiple projects (labels are specified in configuration file or by template repo)

App allows you run master-to-master replication web server which works with GitHub webhooks (https://developer.github.com/webhooks/) and manage labels for multiple repositories in even simpler way (try run_server command and see landing page for more information)!

Installation

pip install --extra-index-url https://test.pypi.org/pypi labelord-schmipe5

Config

See included config file what are the options. You will need a personal GitHub token for using this application. You can get your token at https://github.com/settings/tokens. But be careful where you place it!

Usage

Please use --help.

Testing

pip install pytest
python -m pytest tests_cli
python -m pytest tests_web
python -m pytest tests_module

Documentation

pip install sphinx

Generating and viewing

cd docs && make html && cd ..
xdg-open docs/_build/html/index.html

Running included tests

cd docs && make doctest && cd ..

License

This project is licensed under the MIT License - see the LICENSE file for more details.