Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-07 16:02:29 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-02 20:11:51 +0300
commitd33e762167a197f30d075ed409ca1a07ae9f83c6 (patch)
treec89de69219397eec621d5ef3a3da4666266d2371 /lib/api/pipelines.rb
parentac00cd1021cd4e2d6b7a11683b0af61065918a1c (diff)
%[] to %w[]
Diffstat (limited to 'lib/api/pipelines.rb')
-rw-r--r--lib/api/pipelines.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index fcec7e7d3bb..bcb4fdcfe47 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: %[running pending finished branches tags],
+ optional :scope, type: String, values: %w[running pending finished branches tags],
desc: 'The scope of pipelines'
- optional :status, type: String, values: %[running pending success failed canceled skipped],
+ optional :status, type: String, values: %w[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 :username, type: String, desc: 'The name of user who triggered pipelines'
- optional :order_by, type: String, values: %[id status ref username started_at finished_at created_at updated_at], default: 'id',
+ optional :order_by, type: String, values: %w[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: %[asc desc], default: 'desc',
+ optional :sort, type: String, values: %w[asc desc], default: 'desc',
desc: 'The sort method which is combined with an order_by'
end
get ':id/pipelines' do