[skip ci] changelog and minor style changes added
This commit is contained in:
parent
d368b2d202
commit
539694a383
3 changed files with 8 additions and 3 deletions
|
@ -3,7 +3,7 @@ module MergeRequests
|
|||
def execute
|
||||
return error('Invalid issue iid') unless issue_iid.present? && issue.present?
|
||||
|
||||
params[:label_ids] = issue.label_ids if issue.label_ids.any?
|
||||
params[:label_ids] = issue.label_ids if issue.label_ids.any?
|
||||
|
||||
result = CreateBranchService.new(project, current_user).execute(branch_name, ref)
|
||||
return result if result[:status] == :error
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: inherits milestone and labels when a merge request is created from issue
|
||||
merge_request: 13461
|
||||
author: haseebeqx
|
||||
type: added
|
|
@ -2,10 +2,10 @@ require 'spec_helper'
|
|||
|
||||
describe MergeRequests::CreateFromIssueService do
|
||||
let(:project) { create(:project, :repository) }
|
||||
let(:user) { create(:user) }
|
||||
let(:user) { create(:user) }
|
||||
let(:label_ids) { create_pair(:label, project: project).map(&:id) }
|
||||
let(:milestone_id) { create(:milestone, project: project).id }
|
||||
let(:issue) { create(:issue, project: project, milestone_id: milestone_id) }
|
||||
let(:issue) { create(:issue, project: project, milestone_id: milestone_id) }
|
||||
|
||||
subject(:service) { described_class.new(project, user, issue_iid: issue.iid) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue