Make sure you have python 3.9.0+ installed on your machine.
python -m venv env
source env/bin/activate
pip install -r requirements.txt
- Clone the repository.
- Go into
pr-analysis
directory. - Rename
.env.sample
file to.env
. - Go to github or your github enterprise hosted website and head to settings page. Generate a personal access token. For more information, see https://docs.github.com/en/graphql/guides/using-the-explorer.
- Paste the personal access token into the
.env
file underACCESS_TOKEN
. Save file. - Be sure to update the graphql github api base url if necessary.
- Update the
REPO_OWNER
andREPO_NAME
in the .env file and make sure that it is correct. - To execute, run
python pr_analysis.py