UNPKG

1.88 kBMarkdownView Raw
1# Hubot GitHub Event Announcer
2
3Announces [GitHub webhook events][webhooks]. Gotta catch 'em all!
4
5Currently supports:
6
71. Commit Comment events
81. Create events
91. Delete events
101. Deployment events
111. Fork events
121. Issue Comment events
131. Issues events
141. Ping events
151. Pull Request events
161. Pull Request Review Comment events
171. Push events
181. Watch events
19
20All other events it announces by giving you the JSON supplied by the webhook.
21
22## Installation
23
24Add the package `hubot-github-event-announcer` as a dependency in your Hubot `package.json` file.
25
26```json
27"dependencies": {
28 "hubot-github-event-announcer": "0.7.0"
29}
30```
31
32Run the following command to make sure the module is installed.
33
34```bash
35$ npm install hubot-github-event-announcer
36```
37
38To enable the script, add the `hubot-github-event-announcer` entry to the `external-scripts.json` file (you may need to create this file).
39
40```json
41["hubot-github-event-announcer"]
42```
43
44## Configuration
45
46The GitHub Event Announcer responds to the URL `http://hubot.example.com/hubot/github-events?room=someRoom` where:
47
481. `hubot.example.com` is the fully-qualified domain name of your instance of Hubot
491. `someRoom` is the name of the chat room where you want announcements to show up
50
51It also can be configured using the following environment values:
52
53* `HUBOT_GITHUB_EVENT_ANNOUNCE_EXCEPTIONS` — If present, announces exceptions that occur during formatting
54* `HUBOT_GITHUB_EVENT_DEFAULT_ROOM` — If no room is specified in the hook, the announcer will send events to this room
55
56## Copyright
57
58Copyright © 2015 by [Lee Dohm](http://www.lee-dohm.com) and [Lifted Studios](http://www.liftedstudios.com). See [LICENSE][license] for details.
59
60[license]: https://github.com/lifted-studios/hubot-github-event-announcer/blob/master/LICENSE.md
61[webhooks]: https://developer.github.com/v3/activity/events/types/