From e2d3e2734b8dcc7c943b373e19c21f8084f80425 Mon Sep 17 00:00:00 2001 From: stephan lindauer Date: Tue, 31 Jul 2018 17:49:15 +0200 Subject: [PATCH] use a different field to get the author name --- pkg/gh/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gh/client.go b/pkg/gh/client.go index 2ddbe3b..400966d 100644 --- a/pkg/gh/client.go +++ b/pkg/gh/client.go @@ -86,9 +86,9 @@ func (gh *API) GetBranch(location *Location) (*Branch, error) { Location: *location, Rate: resp.Rate, Name: *ghBranch.Name, - Author: *ghBranch.Commit.Author.Login, SHA: *ghBranch.Commit.SHA, Message: *ghBranch.Commit.Commit.Message, + Author: *ghBranch.Commit.Commit.Author.Name, Date: *ghBranch.Commit.Commit.Author.Date, }