From 212b12808ed3117cd4dcaecfd4bc1a9f4b5e8063 Mon Sep 17 00:00:00 2001 From: malmor <62105800+malmor@users.noreply.github.com> Date: Thu, 29 Jan 2026 07:48:30 +0100 Subject: [PATCH] feat(api): add support for order_by filter in runner jobs This commits adds to the work done in [1]. After reading the docs [2] again, you must define order_by when using sort, so this commits adds this as an additional filter. [1]: https://github.com/python-gitlab/python-gitlab/pull/3336 [2]: https://docs.gitlab.com/api/runners/#list-all-jobs-processed-by-a-runner Signed-off-by: malmor <62105800+malmor@users.noreply.github.com> --- gitlab/v4/objects/runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/v4/objects/runners.py b/gitlab/v4/objects/runners.py index 87b6a8b3c..ba7256cf5 100644 --- a/gitlab/v4/objects/runners.py +++ b/gitlab/v4/objects/runners.py @@ -38,7 +38,7 @@ class RunnerJobManager(ListMixin[RunnerJob]): _path = "/runners/{runner_id}/jobs" _obj_cls = RunnerJob _from_parent_attrs = {"runner_id": "id"} - _list_filters = ("status", "sort") + _list_filters = ("status", "order_by", "sort") class Runner(SaveMixin, ObjectDeleteMixin, RESTObject):