Add customizable Logger interface + info,error and debugs

This commit is contained in:
Dean Karn
2017-07-15 12:04:34 -07:00
parent 9a8b92d028
commit 993ec330d3
10 changed files with 158 additions and 19 deletions
-2
View File
@@ -14,7 +14,6 @@ const (
)
func main() {
hook := github.New(&github.Config{Secret: "MyGitHubSuperSecretSecrect...?"})
hook.RegisterEvents(HandleRelease, github.ReleaseEvent)
hook.RegisterEvents(HandlePullRequest, github.PullRequestEvent)
@@ -27,7 +26,6 @@ func main() {
// HandleRelease handles GitHub release events
func HandleRelease(payload interface{}, header webhooks.Header) {
fmt.Println("Handling Release")
pl := payload.(github.ReleasePayload)