diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-17 12:38:44 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-17 12:38:44 +0300 |
commit | b4bc9bd5c5bedcd57e795f91f0668d7f2c622cde (patch) | |
tree | e779f4bae74a4731d8639b278f5672dadb9aa2b9 /app | |
parent | 6b314f7b0686dc94ad9c87a3e60192b5f366447f (diff) | |
parent | 7e9484e9fab052642bc57947ce4610c164da2b9d (diff) |
Merge branch '41727-target-branch-name' into 'master'
Set target_branch to the ref branch when creating MR from issue
Closes #41727
See merge request gitlab-org/gitlab-ce!16422
Diffstat (limited to 'app')
-rw-r--r-- | app/services/merge_requests/create_from_issue_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/merge_requests/create_from_issue_service.rb b/app/services/merge_requests/create_from_issue_service.rb index 89dab1dd028..cf687b71d16 100644 --- a/app/services/merge_requests/create_from_issue_service.rb +++ b/app/services/merge_requests/create_from_issue_service.rb @@ -54,6 +54,7 @@ module MergeRequests source_project_id: project.id, source_branch: branch_name, target_project_id: project.id, + target_branch: ref, milestone_id: issue.milestone_id } end |