mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
use head.ref instead of base.ref
This commit is contained in:
parent
c4f3da6ecf
commit
91c9f1b99a
@ -159,7 +159,7 @@ func pipelineFromPullRequest(hook *pullRequestHook) *model.Pipeline {
|
||||
Commit: hook.PullRequest.Head.Sha,
|
||||
ForgeURL: hook.PullRequest.HTMLURL,
|
||||
Ref: fmt.Sprintf("refs/pull/%d/head", hook.Number),
|
||||
Branch: hook.PullRequest.Base.Ref,
|
||||
Branch: hook.PullRequest.Head.Ref,
|
||||
Message: hook.PullRequest.Title,
|
||||
Author: hook.PullRequest.Poster.UserName,
|
||||
Avatar: avatar,
|
||||
|
Loading…
Reference in New Issue
Block a user