cleanup imports + README for v2

This commit is contained in:
Dean Karn
2016-10-20 19:51:20 -04:00
parent 60d6ca11e3
commit 1e0ece40df
7 changed files with 26 additions and 23 deletions
+3 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"strconv"
"gopkg.in/go-playground/webhooks.v1"
"gopkg.in/go-playground/webhooks.v1/github"
"gopkg.in/go-playground/webhooks.v2"
"gopkg.in/go-playground/webhooks.v2/github"
)
const (
@@ -14,6 +14,7 @@ const (
)
func main() {
hook := github.New(&github.Config{Secret: "MyGitHubSuperSecretSecrect...?"})
hook.RegisterEvents(HandleMultiple, github.ReleaseEvent, github.PullRequestEvent) // Add as many as you want