diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-23 09:12:40 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-23 10:55:52 -0200 |
commit | 59f4298566c4396f50a83c46bbacf89775927a9f (patch) | |
tree | 4d54caf5bfb3e9b85ac2c37aa9db7e36dc49badb /lib | |
parent | f063473849b92a450a5a9d756155c61feff7e634 (diff) | |
download | gitlab-ce-59f4298566c4396f50a83c46bbacf89775927a9f.tar.gz |
Merge branch 'fixes-issues-api-reopen' into 'master'
Fix state_event parameter to reopen an issue
Closes #25958
See merge request !8246
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/issues.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index c9124649cbb..91f65882f47 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -37,8 +37,6 @@ module API optional :labels, type: String, desc: 'Comma-separated list of label names' optional :due_date, type: String, desc: 'Date time string in the format YEAR-MONTH-DAY' optional :confidential, type: Boolean, desc: 'Boolean parameter if the issue should be confidential' - optional :state_event, type: String, values: %w[open close], - desc: 'State of the issue' end end @@ -172,6 +170,7 @@ module API optional :title, type: String, desc: 'The title of an issue' optional :updated_at, type: DateTime, desc: 'Date time when the issue was updated. Available only for admins and project owners.' + optional :state_event, type: String, values: %w[reopen close], desc: 'State of the issue' use :issue_params at_least_one_of :title, :description, :assignee_id, :milestone_id, :labels, :created_at, :due_date, :confidential, :state_event |