1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-04 20:21:42 +00:00

github: fix commenter fields

This commit is contained in:
Chris Sexton 2020-11-22 14:02:11 -05:00
parent 7b98da6286
commit cebf15d8fe

View File

@ -103,7 +103,7 @@ func (p *GitPlugin) githubEvent(w http.ResponseWriter, r *http.Request) {
owner = cmt.Repository.Owner.Login owner = cmt.Repository.Owner.Login
msg += fmt.Sprintf("%s %s %s on <%s|%s #%d>", msg += fmt.Sprintf("%s %s %s on <%s|%s #%d>",
icon, icon,
cmt.Issue.User.Login, cmt.Sender.Login,
action, action,
cmt.Issue.HTMLURL, cmt.Issue.HTMLURL,
cmt.Issue.Title, cmt.Issue.Title,
@ -130,7 +130,7 @@ func (p *GitPlugin) githubEvent(w http.ResponseWriter, r *http.Request) {
owner = issueEvent.Repository.Owner.Login owner = issueEvent.Repository.Owner.Login
msg += fmt.Sprintf("%s %s %s issue <%s|%s #%d>", msg += fmt.Sprintf("%s %s %s issue <%s|%s #%d>",
icon, icon,
issueEvent.Issue.User.Login, issueEvent.Sender.Login,
action, action,
issueEvent.Issue.HTMLURL, issueEvent.Issue.HTMLURL,
issueEvent.Issue.Title, issueEvent.Issue.Title,