GitHub Issue Notifier
Sends an email alert based on matching a regex pattern in one of the following:
- Issue/Pull Request Subject
- Issue/Pull Request Body
- Pull Request File Name
- Issue Comments
- Pull Request Comments
- Pull Request Commit Messages
git clone https://github.com/sivel/github-notify.git
cd github-notify
pip install -r requirements.txt
- Create a
github-notify.yaml
configuration file as described below
This file can live at ./github-notify.yaml
, ~/.github-notify.yaml
, or /etc/github-notify.yaml
---
github_client_id: 1ecad3b34f7b437db6d0
github_client_secret: 6689ba85bb024d1b97370c45f1316a16d08bba20
github_repository:
- 'ansible/ansible'
- 'ansible/ansible-modules-core'
- 'ansible/ansible-modules-extras'
regex_pattern: 'rax|rackspace|openstack|nova'
mailgun_domain: example.mailgun.org
mailgun_api_key: "key-rj4-0pngm5bsbehryarfy1eg84hf0l6jf2"
email_from: no-reply@example.org
email_to:
- person@example.org
- robot@example.org
The above values are dummy placeholder values and are not valid for use
You will need to register an application to provide API access. The Client ID and Secret will need to be populated as shown in the above example.
It is recommended that you run github-notify.py
via cron. The fewer pull requests and
issues that a project has the more frequently you can run the cron job. I'd recommend
starting with every 60 minutes (1 hour).