From eeec08429362d35bc00b99a1b38caf8aa81d358c Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sat, 10 Aug 2024 20:43:50 +0200 Subject: [PATCH] Set refspec for gitlab MR (#4021) --- server/forge/gitlab/convert.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/forge/gitlab/convert.go b/server/forge/gitlab/convert.go index 793e81248..ad6dbea58 100644 --- a/server/forge/gitlab/convert.go +++ b/server/forge/gitlab/convert.go @@ -124,6 +124,7 @@ func convertMergeRequestHook(hook *gitlab.MergeEvent, req *http.Request) (int, * pipeline.Ref = fmt.Sprintf(mergeRefs, obj.IID) pipeline.Branch = obj.SourceBranch + pipeline.Refspec = fmt.Sprintf("%s:%s", obj.SourceBranch, obj.TargetBranch) author := lastCommit.Author