A simple service that sends slack notifications if a pull request still open after X days.
It gets the opened pull requests from a GitHub repository and send a Slack notification to a channel. But just if the pull request still open after a predefined number of days.
You need to set these environment variables:
- REPO_OWNER - The repository owner
- REPO_NAME - The repository name
- DAYS_TO_NOTIFY - Minimum number of days an pull request needs to be open to send notifications
- SLACK_CHANNEL_ID - Slack channel that will receive the notification
- SLACK_TOKEN - Slack authorization token
Just execute:
python3 main.py