Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/lita-github-web-hooks
GitHub web hook integration for Lita.
https://github.com/jimmycuadra/lita-github-web-hooks
chatops github github-api lita lita-handler ruby
Last synced: 9 days ago
JSON representation
GitHub web hook integration for Lita.
- Host: GitHub
- URL: https://github.com/jimmycuadra/lita-github-web-hooks
- Owner: jimmycuadra
- License: mit
- Created: 2014-02-12T12:58:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-17T08:24:50.000Z (over 10 years ago)
- Last Synced: 2024-10-13T12:25:35.016Z (24 days ago)
- Topics: chatops, github, github-api, lita, lita-handler, ruby
- Language: Ruby
- Size: 215 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lita-github-web-hooks
**lita-github-web-hooks** integrates GitHub [Web Hooks](https://developer.github.com/webhooks/) with [Lita](http://www.lita.io/). It allows Lita to announce various GitHub activity in the chat.
## Installation
Add lita-github-web-hooks to your Lita instance's Gemfile:
``` ruby
gem "lita-github-web-hooks"
```## Configuration
### Required attributes
* `room_ids` (Array<String>) - An array of string room IDs. Events received from GitHub will be announced in every room defined by this attribute.
* `user_ids` (Array<String>) - An array of string user IDs. Events received from GitHub will be sent to every user defined by this attribute.### Example
Here is an example of what a configuration for Lita running on HipChat might look like.
``` ruby
Lita.configure do |config|
config.handlers.github_web_hooks.room_ids = ["12345_myroom"]
config.handlers.github_web_hooks.user_ids = ["[email protected]"]
end
```## Usage
**IMPORTANT: Only the ping, push, and watch hooks are implemented so far. The rest of the hooks will be coming when GitHub documents their payloads.**
1. Specify which rooms and users you want GitHub activity announced to via the configuration attributes.
1. Use GitHub's API or a repository's settings page to create a new hook for the events you're interested in. Set the "Payoad URL" to http://example.com/github-web-hooks, where example.com is the hostname where your Lita instance is running.## License
[MIT](http://opensource.org/licenses/MIT)