Fix issue/mr close/reopen via API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
d65bf4605e
commit
f6ee55aabd
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
module Issues
|
module Issues
|
||||||
class UpdateService < Issues::BaseService
|
class UpdateService < Issues::BaseService
|
||||||
def execute(issue)
|
def execute(issue)
|
||||||
state = params.delete('state_event')
|
state = params.delete('state_event') || params.delete(:state_event)
|
||||||
|
|
||||||
case state
|
case state
|
||||||
when 'reopen'
|
when 'reopen'
|
||||||
|
|
|
@ -10,7 +10,7 @@ module MergeRequests
|
||||||
params.delete(:source_project_id)
|
params.delete(:source_project_id)
|
||||||
params.delete(:target_project_id)
|
params.delete(:target_project_id)
|
||||||
|
|
||||||
state = params.delete('state_event')
|
state = params.delete('state_event') || params.delete(:state_event)
|
||||||
|
|
||||||
case state
|
case state
|
||||||
when 'reopen'
|
when 'reopen'
|
||||||
|
|
Loading…
Reference in a new issue