Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshed-io/github-webhook-collector
Add a Keen IO webhook to all your Github repositories
https://github.com/joshed-io/github-webhook-collector
Last synced: 13 days ago
JSON representation
Add a Keen IO webhook to all your Github repositories
- Host: GitHub
- URL: https://github.com/joshed-io/github-webhook-collector
- Owner: joshed-io
- License: other
- Created: 2014-06-26T00:17:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T23:42:49.000Z (over 10 years ago)
- Last Synced: 2024-04-18T01:42:41.209Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 145 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-webhook-collector
Create a [Keen IO](https://keen.io/) webhook for all of your Github repositories.
Storing [Github events](https://developer.github.com/webhooks/#events) in Keen IO gives you the power to do analytics on Github activities over time.### Setup
Clone and install dependencies:
``` shell
$ git clone [email protected]:dzello/github-webhook-collector.git
$ cd github-webhook-collector
$ gem install bundler
$ bundle install
```Create a `.env` file with your Github and Keen IO information:
```
GITHUB_USERNAME=XXXXXXX
GITHUB_PASSWORD=XXXXXXX
KEEN_PROJECT_ID=XXXXXXX
KEEN_WRITE_KEY=XXXXXXXX
```Substitute the X's for your actual credentials. (This file is in .gitignore, so it won't get checked in.)
### Usage
List existing webhooks pointing to `api.keen.io`:
``` shell
$ foreman run rake hooks:list
```Create webhooks for all repositories you have admin access to:
``` shell
$ foreman run bundle exec rake hooks:create
```Remove existing webhooks to `api.keen.io`:
``` shell
$ foreman run bundle exec rake hooks:remove
```### Contributing
Contributions are welcome!