diff options
author | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-02-05 10:25:06 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-03-01 17:19:14 +0300 |
commit | 7b31095ef85982af2aa3bcc5861c5c22e284b15c (patch) | |
tree | aed40e03d64aba8d28809b1a10ebd4a329d69b46 /app/services/merge_requests/update_service.rb | |
parent | ccbce7af7e0e532ae5d19ea2af7aaff8933490a9 (diff) |
/wip slash command on MR creation
change to symbol
add complete changelog
add test for /wip
unwip as sym
test for work in progress separate from issuable
Diffstat (limited to 'app/services/merge_requests/update_service.rb')
-rw-r--r-- | app/services/merge_requests/update_service.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/services/merge_requests/update_service.rb b/app/services/merge_requests/update_service.rb index c153872c874..8a40ad88182 100644 --- a/app/services/merge_requests/update_service.rb +++ b/app/services/merge_requests/update_service.rb @@ -98,17 +98,6 @@ module MergeRequests private - def handle_wip_event(merge_request) - if wip_event = params.delete(:wip_event) - # We update the title that is provided in the params or we use the mr title - title = params[:title] || merge_request.title - params[:title] = case wip_event - when 'wip' then MergeRequest.wip_title(title) - when 'unwip' then MergeRequest.wipless_title(title) - end - end - end - def create_branch_change_note(issuable, branch_type, old_branch, new_branch) SystemNoteService.change_branch( issuable, issuable.project, current_user, branch_type, |