Commit c7af1d64 authored by Kerri Miller's avatar Kerri Miller

Merge branch '291012-mark-mr-as-preparing' into 'master'

Mark merge request as preparing on create

See merge request gitlab-org/gitlab!56086
parents a629cd59 0f51c712
......@@ -14,6 +14,8 @@ module MergeRequests
end
def after_create(issuable)
issuable.mark_as_preparing
# Add new items to MergeRequests::AfterCreateService if they can
# be performed in Sidekiq
NewMergeRequestWorker.perform_async(issuable.id, current_user.id)
......
---
title: Mark merge request as preparing on create
merge_request: 56086
author:
type: other
......@@ -57,6 +57,10 @@ RSpec.describe MergeRequests::CreateService, :clean_gitlab_redis_shared_state do
expect(Event.where(attributes).count).to eq(1)
end
it 'sets the merge_status to preparing' do
expect(merge_request.reload).to be_preparing
end
describe 'when marked with /wip' do
context 'in title and in description' do
let(:opts) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment