Printing out all PRs in the last 7 days using Github API
Set your target repo owner and repository name in the .env file
OWNER=
REPOSITORY=
- Clone the repo:
git clone https://github.com/ranazrad/pr-notifier.git
- Change directory to pr-notifier:
cd pr-notifier
- Override the variables in .env file to the desired Repo:
OWNER=
REPOSITORY=
- Build the docker file:
docker build -t pr-notifier .
- Run the docker image to execute the script:
docker run --env-file .env pr-notifier
- View the stdout logs
- If no stdout logs, view container logs:
docker logs pr-notifier