summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-23 11:07:18 +0000
committerRémy Coutable <remy@rymai.me>2017-02-23 11:07:18 +0000
commit8cc61d0b2a3507609665c3c5d3e8a475772c6b87 (patch)
tree034b54cf7481f24d9330df00b17ec0a8642c502b /lib
parentf106ad513546c8d77b88a0a061a0b6a7e7ee26ed (diff)
parentdf97e21c4faffaf14f23c407047cde17f61d95ba (diff)
downloadgitlab-ce-8cc61d0b2a3507609665c3c5d3e8a475772c6b87.tar.gz
Merge branch '26875-builds-api-endpoint-skipped-scope' into 'master'
Add all available statuses to scope filter for project builds endpoint Closes #26875 See merge request !8971
Diffstat (limited to 'lib')
-rw-r--r--lib/api/builds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index 44fe0fc4a95..5b76913fe45 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -11,7 +11,7 @@ module API
helpers do
params :optional_scope do
optional :scope, types: [String, Array[String]], desc: 'The scope of builds to show',
- values: ['pending', 'running', 'failed', 'success', 'canceled'],
+ values: ::CommitStatus::AVAILABLE_STATUSES,
coerce_with: ->(scope) {
if scope.is_a?(String)
[scope]