summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-30 18:59:45 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit0a36bfa994582b690a7935fed4c15d42b22bd0ed (patch)
treea3cc8fedbed53f6bfc5e30cfafc5df59100a73e3 /lib/api
parent4bd0d8e433cdffba9e28a24657104eb2b0b0e761 (diff)
downloadgitlab-ce-0a36bfa994582b690a7935fed4c15d42b22bd0ed.tar.gz
Use HasStatus::AVAILABLE_STATUSES instead of hard coding
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/pipelines.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index b0f586b08da..29757dd9935 100644
--- a/lib/api/pipelines.rb
+++ b/lib/api/pipelines.rb
@@ -16,7 +16,7 @@ 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: %w[running pending success failed canceled skipped],
+ optional :status, type: String, values: HasStatus::AVAILABLE_STATUSES,
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'