A GitHub bot for managing the FRRouting/frr repo.
- Install Python 3
- Clone repo &
cd frrbot
- Install poetry
poetry install
- Copy
config.yaml.example
toconfig.yaml
- Set up your webhooks on GitHub, generate a webhook secret and put it in the
gh_webhook_secret
field inconfig.yaml
- Generate an auth token for the account you want the bot to use and put it in
the
gh_auth_token field
inconfig.yaml
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
- Install uwsgi
- Use
./run.sh
to create and mount a WSGI endpoint on/frrbot
and configure your web server to WSGI proxy your payload URL to it