Set author for pull request
This commit is contained in:
parent
0296edf981
commit
cd5126d8c9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue