diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-07 21:36:45 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:50 +0900 |
commit | af7cb5b93191453de4ff7561089bb0b0146c688f (patch) | |
tree | c7efd57e44c743fdef1e76d0b39b90889890e4a0 /lib/api | |
parent | 7e421e55233bbb26594de2a88e62854b468fb02a (diff) | |
download | gitlab-ce-af7cb5b93191453de4ff7561089bb0b0146c688f.tar.gz |
%w() to %[]
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/pipelines.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb index 70837d91c7a..fcec7e7d3bb 100644 --- a/lib/api/pipelines.rb +++ b/lib/api/pipelines.rb @@ -14,16 +14,16 @@ module API end params do use :pagination - optional :scope, type: String, values: %w(running pending finished branches tags), + optional :scope, type: String, values: %[running pending finished branches tags], desc: 'The scope of pipelines' - optional :status, type: String, values: %w(running pending success failed canceled skipped), + optional :status, type: String, values: %[running pending success failed canceled skipped], desc: 'The status of pipelines' optional :ref, type: String, desc: 'The ref of pipelines' - optional :yaml_errors, type: Boolean, desc: 'If true, Returns only yaml error pipelines' + optional :yaml_errors, type: Boolean, desc: 'If true, returns only yaml error pipelines' optional :username, type: String, desc: 'The name of user who triggered pipelines' - optional :order_by, type: String, values: %w(id status ref username started_at finished_at created_at updated_at), default: 'id', + optional :order_by, type: String, values: %[id status ref username started_at finished_at created_at updated_at], default: 'id', desc: 'The order_by which is combined with a sort' - optional :sort, type: String, values: %w(asc desc), default: 'desc', + optional :sort, type: String, values: %[asc desc], default: 'desc', desc: 'The sort method which is combined with an order_by' end get ':id/pipelines' do |