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

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,