mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
parent
c77c7fabe8
commit
57b3752bd8
1 changed files with 1 additions and 5 deletions
|
@ -503,11 +503,7 @@ func mergeRequest(parsed *client.HookPayload, req *http.Request) (*model.Repo, *
|
|||
build.Commit = lastCommit.Id
|
||||
//build.Remote = parsed.ObjectAttributes.Source.HttpUrl
|
||||
|
||||
if obj.SourceProjectId == obj.TargetProjectId {
|
||||
build.Ref = fmt.Sprintf("refs/heads/%s", obj.SourceBranch)
|
||||
} else {
|
||||
build.Ref = fmt.Sprintf("refs/merge-requests/%d/head", obj.IId)
|
||||
}
|
||||
build.Ref = fmt.Sprintf("refs/merge-requests/%d/head", obj.IId)
|
||||
|
||||
build.Branch = obj.SourceBranch
|
||||
|
||||
|
|
Loading…
Reference in a new issue