diff options
author | James Ramsay <james@jramsay.com.au> | 2018-04-01 17:16:35 -0400 |
---|---|---|
committer | James Ramsay <james@jramsay.com.au> | 2018-04-27 11:00:52 +0100 |
commit | b65fcc320d65367973a58a01618914056993541b (patch) | |
tree | d845d07c49dcba94ebb12781fb6effc2cdbd8ac4 /lib/api | |
parent | c73b5d31e680b175b2592d299c901bdcb43bca9f (diff) | |
download | gitlab-ce-b65fcc320d65367973a58a01618914056993541b.tar.gz |
Add sha filter to list pipelines
To find the pipeline for a specific sha requires scanning the list of
all pipelines for a ref that contains the sha. This makes it hard to
find the pipeline id needed to access a trace for a specific job run
in the pipeline using the API.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/pipelines.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb index d2b8b832e4e..735591fedd5 100644 --- a/lib/api/pipelines.rb +++ b/lib/api/pipelines.rb @@ -19,6 +19,7 @@ module API optional :status, type: String, values: HasStatus::AVAILABLE_STATUSES, desc: 'The status of pipelines' optional :ref, type: String, desc: 'The ref of pipelines' + optional :sha, type: String, desc: 'The sha of pipelines' optional :yaml_errors, type: Boolean, desc: 'Returns pipelines with invalid configurations' optional :name, type: String, desc: 'The name of the user who triggered pipelines' optional :username, type: String, desc: 'The username of the user who triggered pipelines' |