Set author for pull request

This commit is contained in:
Nurahmadie 2014-03-02 17:46:02 +07:00
parent 0296edf981
commit cd5126d8c9

View file

@ -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