Skip to content

Commit dbc36b5

Browse files
[11.9] Allow update_at order by in Projects::pipelines (#710)
Co-authored-by: Graham Campbell <[email protected]>
1 parent 6088676 commit dbc36b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Api/Projects.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ public function enableRunner(int $project_id, int $runner_id)
337337
* @var bool $yaml_errors returns pipelines with invalid configurations
338338
* @var string $name the name of the user who triggered pipelines
339339
* @var string $username the username of the user who triggered pipelines
340-
* @var string $order_by order pipelines by id, status, ref, or user_id (default: id)
340+
* @var string $order_by order pipelines by id, status, ref, updated_at, or user_id (default: id)
341341
* @var string $order sort pipelines in asc or desc order (default: desc)
342-
* @var string $source The source of the pipeline
342+
* @var string $source the source of the pipeline
343343
* }
344344
*
345345
* @return mixed
@@ -377,7 +377,7 @@ public function pipelines($project_id, array $parameters = [])
377377
->setNormalizer('updated_before', $datetimeNormalizer)
378378
;
379379
$resolver->setDefined('order_by')
380-
->setAllowedValues('order_by', ['id', 'status', 'ref', 'user_id'])
380+
->setAllowedValues('order_by', ['id', 'status', 'ref', 'updated_at', 'user_id'])
381381
;
382382
$resolver->setDefined('sort')
383383
->setAllowedValues('sort', ['asc', 'desc'])

0 commit comments

Comments
 (0)