mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-17 00:41:26 +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.Status = "Pending"
|
||||||
commit.Created = time.Now().UTC()
|
commit.Created = time.Now().UTC()
|
||||||
commit.Gravatar = hook.PullRequest.User.GravatarId
|
commit.Gravatar = hook.PullRequest.User.GravatarId
|
||||||
|
commit.Author = hook.PullRequest.User.Login
|
||||||
commit.PullRequest = strconv.Itoa(hook.Number)
|
commit.PullRequest = strconv.Itoa(hook.Number)
|
||||||
commit.Message = hook.PullRequest.Title
|
commit.Message = hook.PullRequest.Title
|
||||||
// label := p.PullRequest.Head.Labe
|
// label := p.PullRequest.Head.Labe
|
||||||
|
Loading…
Reference in New Issue
Block a user