Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Tags github issue with labels defined by regular expression

Project Description

Description

Small python script which can automatically label issues in your github repo.

### Install python -m pip install –extra-index-url https://testpypi.python.org/pypi github-robot

### Dependencies

pip install configparser, click, request, flask

Github Robot usage

### Config file template token: Github token needed for authentication

rules: Issues labelling is based on regexp rules defined here

defaultlabel: If no rule before works for ulabelled issue, then issue gets default label defined here

searchcomments: True/False - if True, this app will search keywords also in issue’s comments

Example of config.ini:

[github] token = xxx

rules = [[“searched text”, “label text”], [“searched text”, “label text”]] defaultlabel = “” searchcomments = False

Place the config.ini in the working directory defined in pythonanywhere.com. For example my config.ini is in /home/pilatcen/config.ini and robot.py is in /home/pilatcen/1.HW-MI-PYT/robot.py. And then create webhook in your github repository which triggers /hook only on issue change (create/delete…)

### Endpoints / - Shows this help

/hook - Accept only POST request with JSON data about actions connected with issues from github.com

### Usage githubrobot –help

Release History

Release History

This version
History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
github-robot-0.6.tar.gz (17.6 kB) Copy SHA256 Checksum SHA256 Source Oct 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting