mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-05 08:58:50 +00:00
Set refspec for gitlab MR (#4021)
This commit is contained in:
parent
1ec7525bf4
commit
4ab8374c9a
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.Ref = fmt.Sprintf(mergeRefs, obj.IID)
|
||||||
pipeline.Branch = obj.SourceBranch
|
pipeline.Branch = obj.SourceBranch
|
||||||
|
pipeline.Refspec = fmt.Sprintf("%s:%s", obj.SourceBranch, obj.TargetBranch)
|
||||||
|
|
||||||
author := lastCommit.Author
|
author := lastCommit.Author
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue