mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
Set author for pull request
This commit is contained in:
parent
0296edf981
commit
cd5126d8c9
@ -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…
x
Reference in New Issue
Block a user