Commit f6ee55aa authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issue/mr close/reopen via API

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent d65bf460
module Issues
class UpdateService < Issues::BaseService
def execute(issue)
state = params.delete('state_event')
state = params.delete('state_event') || params.delete(:state_event)
case state
when 'reopen'
......
......@@ -10,7 +10,7 @@ module MergeRequests
params.delete(:source_project_id)
params.delete(:target_project_id)
state = params.delete('state_event')
state = params.delete('state_event') || params.delete(:state_event)
case state
when 'reopen'
......
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