From f57487868af91fb91f57c689454ab920f1f6843e Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 22 Nov 2020 14:02:11 -0500 Subject: [PATCH] github: fix commenter fields --- plugins/git/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git/github.go b/plugins/git/github.go index d5dd728..c59c7a1 100644 --- a/plugins/git/github.go +++ b/plugins/git/github.go @@ -103,7 +103,7 @@ func (p *GitPlugin) githubEvent(w http.ResponseWriter, r *http.Request) { owner = cmt.Repository.Owner.Login msg += fmt.Sprintf("%s %s %s on <%s|%s #%d>", icon, - cmt.Issue.User.Login, + cmt.Sender.Login, action, cmt.Issue.HTMLURL, cmt.Issue.Title, @@ -130,7 +130,7 @@ func (p *GitPlugin) githubEvent(w http.ResponseWriter, r *http.Request) { owner = issueEvent.Repository.Owner.Login msg += fmt.Sprintf("%s %s %s issue <%s|%s #%d>", icon, - issueEvent.Issue.User.Login, + issueEvent.Sender.Login, action, issueEvent.Issue.HTMLURL, issueEvent.Issue.Title,