1
0
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:
pat-s 2024-12-05 23:07:42 +01:00
parent c4f3da6ecf
commit 91c9f1b99a
No known key found for this signature in database
GPG Key ID: 3C6318841EF78925

View File

@ -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,