1 | # Hubot GitHub Event Announcer
|
2 |
|
3 | Announces [GitHub webhook events][webhooks]. Gotta catch 'em all!
|
4 |
|
5 | Currently supports:
|
6 |
|
7 | 1. Commit Comment events
|
8 | 1. Create events
|
9 | 1. Delete events
|
10 | 1. Deployment events
|
11 | 1. Fork events
|
12 | 1. Issue Comment events
|
13 | 1. Issues events
|
14 | 1. Ping events
|
15 | 1. Pull Request events
|
16 | 1. Pull Request Review Comment events
|
17 | 1. Push events
|
18 | 1. Watch events
|
19 |
|
20 | All other events it announces by giving you the JSON supplied by the webhook.
|
21 |
|
22 | ## Installation
|
23 |
|
24 | Add 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 |
|
32 | Run the following command to make sure the module is installed.
|
33 |
|
34 | ```bash
|
35 | $ npm install hubot-github-event-announcer
|
36 | ```
|
37 |
|
38 | To 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 |
|
46 | The GitHub Event Announcer responds to the URL `http://hubot.example.com/hubot/github-events?room=someRoom` where:
|
47 |
|
48 | 1. `hubot.example.com` is the fully-qualified domain name of your instance of Hubot
|
49 | 1. `someRoom` is the name of the chat room where you want announcements to show up
|
50 |
|
51 | It 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 |
|
58 | Copyright © 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/
|