From ec93fcaff9cf50a785f0be0af2ded780ea6987c5 Mon Sep 17 00:00:00 2001 From: A_D Date: Sat, 17 Nov 2018 21:29:48 +0200 Subject: [PATCH] made sure to print json for unknown actions --- src/webhooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webhooks.go b/src/webhooks.go index dffd240..f0cc1f3 100644 --- a/src/webhooks.go +++ b/src/webhooks.go @@ -62,7 +62,6 @@ func handleUnknown(data []byte, msgChan chan string) { } func handlePush(data []byte, msgChan chan string) { - printSep() pushData := Push{} json.Unmarshal(data, &pushData) outIrcMessage := strings.Builder{} @@ -90,6 +89,7 @@ func handleIssueAction(data []byte, msgChan chan string) { outMsg.WriteString(fmt.Sprintf("%s closed issue %q", action.Sender.Login, action.Issue.Title)) default: outMsg.WriteString(fmt.Sprintf("%s performed an unknown action (%s) on issue %f", action.Sender.Login, action.Action, action.Issue.Id)) + fmt.Println(string(data)) } msgChan <- outMsg.String() }