hookhub

command module
v0.0.0-...-a51db92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2014 License: MIT Imports: 16 Imported by: 0

README

HookHub - A simple webhook handler for Github Releases

Installation

Make sure you have your Go environment setup, in particular that GOPATH is set. Then run:

$ go install github.com/litl/hookhub

Configuration

You will need a hookhub.toml configuration file in the server's working directory. An example is provided.

You will also need to configure your Github webhooks to point at http://<host>:<port>/github_webhook, and then modify them to listen for Releases.

First, find the id for your hook:

curl -H "Authorization: token YOURTOKEN" https://api.github.com/repos/:owner/:repo/hooks

Next, PATCH in support for Release events:

curl -X PATCH -H "Authorization: token YOURTOKEN" -H "Content-Type: application/json" -d '{"add_events":["release"]}' https://api.github.com/repos/:owner/:repo/hooks/:id

HookHub is Copyright (c) 2013 litl, LLC and licensed under the MIT license. See the LICENSE file for full details.

Heavily derived from https://github.com/litl/hookyapp :-)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL