diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-01 02:34:48 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:50 +0900 |
commit | df834306c1794ed72d6d655c7941dee28f7e85c7 (patch) | |
tree | 8bc6c2c173c7cbc803ad4036f7a43d4442cef109 /lib/api/pipelines.rb | |
parent | 994e49b3fbc261f8e59429c1681d83c81ba25df3 (diff) | |
download | gitlab-ce-df834306c1794ed72d6d655c7941dee28f7e85c7.tar.gz |
Add specs. Plus, minor fixes.
Diffstat (limited to 'lib/api/pipelines.rb')
-rw-r--r-- | lib/api/pipelines.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb index 48ab5c21780..ecd6b64cfa7 100644 --- a/lib/api/pipelines.rb +++ b/lib/api/pipelines.rb @@ -21,7 +21,7 @@ module API 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', 'user_id', 'started_at', 'finished_at', 'created_at', 'updated_at'], default: 'id', + optional :order_by, type: String, values: ['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', desc: 'The sort method which is combined with an order_by' |