Skip to content
Snippets Groups Projects
Commit f6d75f09 authored by haseeb's avatar haseeb
Browse files

copy milestones from issue when using create merge request btn

parent 0ff2f664
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -212,7 +212,7 @@ class Projects::IssuesController < Projects::ApplicationController
end
 
def create_merge_request
result = MergeRequests::CreateFromIssueService.new(project, current_user, issue_iid: issue.iid).execute
result = ::MergeRequests::CreateFromIssueService.new(project, current_user, issue_iid: issue.iid).execute
 
if result[:status] == :success
render json: MergeRequestCreateSerializer.new.represent(result[:merge_request])
Loading
Loading
Loading
Loading
@@ -43,7 +43,9 @@ module MergeRequests
{
source_project_id: project.id,
source_branch: branch_name,
target_project_id: project.id
target_project_id: project.id,
labels: issue.labels,
milestone_id: issue.milestone_id
}
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment