From ac7f124bdfe9af8ef31bee5792e585ee8f36a4a9 Mon Sep 17 00:00:00 2001 From: A_D Date: Sat, 17 Nov 2018 21:45:40 +0200 Subject: [PATCH] added emails to commit messages --- src/webhooks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webhooks.go b/src/webhooks.go index b4e1266..b7c82df 100644 --- a/src/webhooks.go +++ b/src/webhooks.go @@ -87,10 +87,11 @@ func handlePush(data []byte, msgChan chan string) { } commitDesc := strings.SplitN(commit.Message, "\n", 1)[0] msgChan <- fmt.Sprintf( - "[%s] commit %s created by %s: %s", + "[%s] commit %s created by %s (%s): %s", pushData.Repository.FullName, shortHash(commit.Hash), - commit.Author.Username, + commit.Author.Name, + commit.Author.Email, commitDesc, ) count++