Installation
environment installation
- install poetry if it’s not in your environment (see python-poerty/poerty)
- use pyenv or conda to create a virtual environment of python version=3.8 (env name=pr-decision-bot, we will use this environment name in the following text)
- install mysql and create a database (here we name the database pr-decision-bot)
run commands to start the program
1. install python dependencies
git clone https://github.com/PR-bots/PR-decision-bot.git
cd PR-decision-bot
conda activate pr-decision-bot
poetry install
poetry shell
2. migrate database
- change the configuration of your mysql database in .env.yaml file (“MYSQL” part)
- create a database with the name you defined in the configuration file
- run the following commands to create tables in the target database
alembic upgrade head
3. run the service
4. install your GitHub App
find your app through your app’s public link and install it to your target personal/organization account that want to use the app.
That’s it! You can use your own App now! Good luck!
Installation
environment installation
run commands to start the program
1. install python dependencies
2. migrate database
3. run the service
python app/prediction_service/trainer.py
and train the model at somewhere else before the start of the service.4. install your GitHub App
find your app through your app’s public link and install it to your target personal/organization account that want to use the app.
That’s it! You can use your own App now! Good luck!