From f8678765fd91d9767a46773b4f7f621c096f9b6b Mon Sep 17 00:00:00 2001 From: Moritz Witte Date: Sun, 5 Feb 2023 14:00:04 +0000 Subject: [PATCH 1/2] added version value for the order_by attribute introduced in GitLab 15.4. --- src/Api/Tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Tags.php b/src/Api/Tags.php index eed1c58f..cd492325 100644 --- a/src/Api/Tags.php +++ b/src/Api/Tags.php @@ -32,7 +32,7 @@ public function all($project_id, array $parameters = []) { $resolver = $this->createOptionsResolver(); $resolver->setDefined('order_by') - ->setAllowedValues('order_by', ['name', 'updated']); + ->setAllowedValues('order_by', ['name', 'updated', 'version']); $resolver->setDefined('sort') ->setAllowedValues('sort', ['asc', 'desc']); $resolver->setDefined('search'); From ea6331e7840872f6b6df1d71509b382cfe92d87c Mon Sep 17 00:00:00 2001 From: Moritz Witte Date: Mon, 10 Apr 2023 20:24:08 +0000 Subject: [PATCH 2/2] updated phpdoc --- src/Api/Tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Tags.php b/src/Api/Tags.php index cd492325..f52cd2c0 100644 --- a/src/Api/Tags.php +++ b/src/Api/Tags.php @@ -20,7 +20,7 @@ class Tags extends AbstractApi * @param int|string $project_id * @param array $parameters { * - * @var string $order_by Return tags ordered by `name` or `updated` fields. Default is `updated`. + * @var string $order_by Return tags ordered by `name`, `updated` or `version` fields. Default is `updated`. * @var string $sort Return tags sorted in asc or desc order. Default is desc. * @var string $search Return list of tags matching the search criteria. You can use `^term` and `term$` to * find tags that begin and end with term respectively.