mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-04 02:57:47 +00:00
Set refspec for gitlab MR (#4021)
This commit is contained in:
parent
92ff320429
commit
eeec084293
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user