mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-03 15:22:25 +02:00
fix github merge ref string creation
This commit is contained in:
parent
b3f4cfccda
commit
3b020f75f6
@ -360,7 +360,7 @@ func (g *GitHub) pullRequest(r *http.Request) (*common.Hook, error) {
|
|||||||
c := &common.Commit{}
|
c := &common.Commit{}
|
||||||
c.Sha = *hook.PullRequest.Head.SHA
|
c.Sha = *hook.PullRequest.Head.SHA
|
||||||
c.Ref = *hook.PullRequest.Head.Ref
|
c.Ref = *hook.PullRequest.Head.Ref
|
||||||
c.Ref = fmt.Sprintf("refs/pull/%s/merge", *hook.PullRequest.Number)
|
c.Ref = fmt.Sprintf("refs/pull/%d/merge", *hook.PullRequest.Number)
|
||||||
c.Branch = *hook.PullRequest.Head.Ref
|
c.Branch = *hook.PullRequest.Head.Ref
|
||||||
c.Timestamp = time.Now().UTC().Format("2006-01-02 15:04:05.000000000 +0000 MST")
|
c.Timestamp = time.Now().UTC().Format("2006-01-02 15:04:05.000000000 +0000 MST")
|
||||||
c.Remote = *hook.PullRequest.Head.Repo.CloneURL
|
c.Remote = *hook.PullRequest.Head.Repo.CloneURL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user