/pull-request-notifier

A simple service that sends slack notifications if a pull request still open after X days

Primary LanguagePythonMIT LicenseMIT

Pull Request Notifier

A simple service that sends slack notifications if a pull request still open after X days.

What it really does?

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.

Configuration

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

How to run

Just execute:

python3 main.py