mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-12 12:15:00 +00:00
Set refspec for gitlab MR (#4021)
This commit is contained in:
parent
92ff320429
commit
eeec084293
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue