Add your tokens for GitHub and OpenAI in the .env
file like this:
GITHUB_TOKEN=<GitHub Token>
OPENAI_API_KEY=<OPENAI API TOKEN>
GITHUB_ORG=<your GitHub organization>
GITHUB_PROJ=<your GitHub project>
To install the requirements:
$ virtualenv .venv
$ . .venv/bin/activate
$ pip install -r requirements.txt
To get the summaries of the merged PR since last week:
$ for url in $(./merged_pr.py | jq -r .items.[].html_url); do
./json2summary.py $(./pr2json.py $url pr)
done