diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-17 12:38:44 +0300 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-01-17 19:09:08 +0300 |
commit | f8d905d228f3ee4e140f033f5ebf0e35bb71b96f (patch) | |
tree | c0f7f95f88b80bdf04c4291fcc08dc00fcbe71f7 /app | |
parent | 49b567cbcfbed3f4d07509e1a23ccac09ef80755 (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
(cherry picked from commit b4bc9bd5c5bedcd57e795f91f0668d7f2c622cde)
7e9484e9 Set target_branch to the ref branch when creating MR from issue
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 |