From cd5126d8c93fa69aa8465d8ed22971fcca78f33e Mon Sep 17 00:00:00 2001 From: Nurahmadie Date: Sun, 2 Mar 2014 17:46:02 +0700 Subject: [PATCH] Set author for pull request --- pkg/handler/hooks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/handler/hooks.go b/pkg/handler/hooks.go index f7aaed24b..8a572d19f 100644 --- a/pkg/handler/hooks.go +++ b/pkg/handler/hooks.go @@ -230,6 +230,7 @@ func (h *HookHandler) PullRequestHook(w http.ResponseWriter, r *http.Request) { commit.Status = "Pending" commit.Created = time.Now().UTC() commit.Gravatar = hook.PullRequest.User.GravatarId + commit.Author = hook.PullRequest.User.Login commit.PullRequest = strconv.Itoa(hook.Number) commit.Message = hook.PullRequest.Title // label := p.PullRequest.Head.Labe