Commit d1ca5f46 authored by Shinya Maeda's avatar Shinya Maeda

No need to support sha for sorting

parent d74a04c4
...@@ -17,7 +17,7 @@ GET /projects/:id/pipelines ...@@ -17,7 +17,7 @@ GET /projects/:id/pipelines
| `yaml_errors`| string | no | If true, returns only yaml error pipelines | | `yaml_errors`| string | no | If true, returns only yaml error pipelines |
| `name`| string | no | The name of user who triggered pipelines | | `name`| string | no | The name of user who triggered pipelines |
| `username`| string | no | The username of user who triggered pipelines | | `username`| string | no | The username of user who triggered pipelines |
| `order_by`| string | no | Return requests ordered by `id`, `status`, `ref`, `sha`, or `user_id` fields. Default is `id` | | `order_by`| string | no | Return requests ordered by `id`, `status`, `ref`, or `user_id` fields. Default is `id` |
| `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` | | `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` |
``` ```
......
...@@ -22,7 +22,7 @@ module API ...@@ -22,7 +22,7 @@ module API
optional :yaml_errors, type: Boolean, desc: 'If true, returns only yaml error pipelines' optional :yaml_errors, type: Boolean, desc: 'If true, returns only yaml error pipelines'
optional :name, type: String, desc: 'The name of user who triggered pipelines' optional :name, type: String, desc: 'The name of user who triggered pipelines'
optional :username, type: String, desc: 'The username of user who triggered pipelines' optional :username, type: String, desc: 'The username of user who triggered pipelines'
optional :order_by, type: String, values: %w[id status ref sha user_id], default: 'id', optional :order_by, type: String, values: %w[id status ref user_id], default: 'id',
desc: 'The order_by which is combined with a sort' desc: 'The order_by which is combined with a sort'
optional :sort, type: String, values: %w[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' desc: 'The sort method which is combined with an order_by'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment