Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brynbellomy/hook.io-github
Emit info about Github repositories on your hook.io hook cloud!
https://github.com/brynbellomy/hook.io-github
Last synced: about 1 month ago
JSON representation
Emit info about Github repositories on your hook.io hook cloud!
- Host: GitHub
- URL: https://github.com/brynbellomy/hook.io-github
- Owner: brynbellomy
- License: mit
- Created: 2012-04-21T23:46:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-22T00:15:02.000Z (over 12 years ago)
- Last Synced: 2024-04-17T00:55:58.660Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hook.io-github
Must be concise for now -- check the `config.json` for an example of how to
configure the hook to watch Github repositories. No username/password
authorization needed for `hook.io-github` to communicate with the Github API.
Easy as pie.__`hook.io-github` currently implements v3 of the API.__
To get a hook up and running in a hurry:
```javascript
var GithubHook = require('./hook.io-github').GithubHook;var hook = new GithubHook({
configFilePath: 'path/to/your/config.json',
name: 'github',
type: 'github',
debug: true
});hook.start();
````hook.io-github` will immediately start emitting `repo` events, each of which
contain the full Github API payload for a single one of the repos in your
`config.json`.If you want to force `hook.io-github` to emit these events again at any point,
simply emit the event `getAllItems` (or `*::getAllItems`) from another one of your `hook.io` hooks:```javascript
myHook.on('github::repo', function(someRepo) {
...
});myHook.emit('getAllItems');
```More documentation (and features) soon!