sortigoza / slack-pull-reminder

Posts a reminder to Slack with a list of open pull requests for an organization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-pull-reminder

Posts a Slack reminder with a list of open pull requests for an organization.
http://i.imgur.com/3xsfTYV.png

Installation

$ pip install slack-pull-reminder

Usage

slack-pull-reminder is configured using environment variables:

Required

  • SLACK_API_TOKEN
  • GITHUB_API_TOKEN
  • GITHUB_ORGANIZATION: The GitHub organization you want pull request reminders for.

Optional

  • IGNORE_WORDS: A comma-separated list of words that will cause a pull request to be ignored.
  • REPOSITORIES: A comma-separated list of repository names to check, where all other repositories in the organization are ignored. All repositories are checked by default.
  • USERNAMES: A comma-separated list of GitHub usernames to filter pull requests by, where all other users are ignored. All users in the organization are included by default.
  • SLACK_CHANNEL: The Slack channel you want the reminders to be posted in, defaults to #general.

Example

$ GITHUB_ORGANIZATION="orgname" SLACK_API_TOKEN="token" GITHUB_API_TOKEN="token" slack-pull-reminder

Cronjob

As slack-pull-reminder only runs once and exits, it's recommended to run it regularly using for example a cronjob.

Example that runs slack-pull-reminder every day at 10:00:

0 10 * * * ORGANIZATION="orgname" SLACK_API_TOKEN="token" GITHUB_API_TOKEN="token" slack-pull-reminder

License

see [LICENCE](./LICENCE)

About

Posts a reminder to Slack with a list of open pull requests for an organization.

License:MIT License


Languages

Language:Python 98.1%Language:Dockerfile 1.9%