mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
Set refspec for gitlab MR (#4021)
This commit is contained in:
parent
1ec7525bf4
commit
4ab8374c9a
@ -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