summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-01 15:58:06 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:50 +0900
commitfd302061f915f535b2dd419d5a76efb76ab534be (patch)
treec982fbf7d0a26336b63c395978c1cad9d978700c /lib/api
parentdf834306c1794ed72d6d655c7941dee28f7e85c7 (diff)
downloadgitlab-ce-fd302061f915f535b2dd419d5a76efb76ab534be.tar.gz
Fix rubocop offences and rspec failures
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/pipelines.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index ecd6b64cfa7..70837d91c7a 100644
--- a/lib/api/pipelines.rb
+++ b/lib/api/pipelines.rb
@@ -16,14 +16,14 @@ module API
use :pagination
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