Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/github-notify
Email Notifier for GitHub Issues and Pull Requests
https://github.com/sivel/github-notify
Last synced: 3 months ago
JSON representation
Email Notifier for GitHub Issues and Pull Requests
- Host: GitHub
- URL: https://github.com/sivel/github-notify
- Owner: sivel
- License: apache-2.0
- Created: 2014-11-05T17:18:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-05T17:28:28.000Z (about 10 years ago)
- Last Synced: 2023-03-23T22:11:57.287Z (almost 2 years ago)
- Language: Python
- Size: 133 KB
- Stars: 22
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-notify
GitHub Issue Notifier
Sends an email alert based on matching a regex pattern in one of the following:
1. Issue/Pull Request Subject
1. Issue/Pull Request Body
1. Pull Request File Name
1. Issue Comments
1. Pull Request Comments
1. Pull Request Commit Messages## Installing
1. `git clone https://github.com/sivel/github-notify.git`
1. `cd github-notify`
1. `pip install -r requirements.txt`
1. Create a `github-notify.yaml` configuration file as described below## github-notify.yaml
This file can live at `./github-notify.yaml`, `~/.github-notify.yaml`, or `/etc/github-notify.yaml`
```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: [email protected]
email_to:
- [email protected]
- [email protected]
```*The above values are dummy placeholder values and are not valid for use*
### GitHub credentials
You will need to [register an application](https://github.com/settings/applications/new)
to provide API access. The Client ID and Secret will need to be populated as
shown in the above example.## Running
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).