githubBot

This project tries to implement a robot that is capable of automate labeling newly added issues to given repository.

Getting started

At first you need to have an account on github.com and this account needs to be added as a collaborator for targeted repository.

Seccondly, you need to generate a security token for this account.

This token needs to be copied to the authconfig file. By default the name of this file is "auth.cfg", but feel free to name it your way (name of your file then needs to be passed to the app through a parameter --authfile)

Default name of used token in this app is "tokenRobot". If you need to use multiple robot accounts for multiple repositories, you can add another tokens and pass suitable token name as a parameter at the start of this application.

auth.cfg (example)

[github]
tokenRobot = <github_token>
<yourNameOfToken> = <github_token>

webconfig.cfg (example)

[webconfig]
authfile = <path_to_your_auth_cfg>
configfile = <path_to_your_config_file>
tokenname = <github_token_name_used_from_auth_cfg>
repoowner = <repository_owner>
repository = <repository_name>
defaultlabel = <name_of_default_label_in_config_file>
superswitch = <number>

About parameters in webconfig.cfg

Run

python githubbot.py [your_parameters]