diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-02-14 17:51:30 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-23 11:06:39 +0000 |
commit | df97e21c4faffaf14f23c407047cde17f61d95ba (patch) | |
tree | 034b54cf7481f24d9330df00b17ec0a8642c502b /lib | |
parent | f106ad513546c8d77b88a0a061a0b6a7e7ee26ed (diff) | |
download | gitlab-ce-df97e21c4faffaf14f23c407047cde17f61d95ba.tar.gz |
Rebase to master for avoiding failing tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/builds.rb | 2 |
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] |