diff --git a/server/forge/forgejo/helper.go b/server/forge/forgejo/helper.go index b6e4a2785..74ef0225b 100644 --- a/server/forge/forgejo/helper.go +++ b/server/forge/forgejo/helper.go @@ -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,