Set refspec for gitlab MR (#4021)

This commit is contained in:
qwerty287 2024-08-10 20:43:50 +02:00 committed by GitHub
parent 92ff320429
commit eeec084293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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