A GitHub bot for managing the FRRouting/frr repo.
- Install Python 3 on your system
pip3 install flask PyGithub apscheduler sqlalchemy dateparser- Copy
config.yaml.exampletoconfig.yaml - Set up your webhooks on GitHub, generate a webhook secret and put it in the
gh_webhook_secretfield - Generate an auth token for the account you want the bot to use and put it in
the
gh_auth_token field
Option 1: flask run
- Set environment variable
FLASK_APP=frrbot.py - Execute
flask run - Configure your web server of choice to proxy your payload URL to
http://localhost:5000/and reload it
Option 2: WSGI
- Use
./run.shto create and mount a WSGI endpoint on /frrbot and configure your web server to WSGI proxy your pyaload URL to it.