From 6a82e82aa402b0e579b1e50e3d3762167700edea Mon Sep 17 00:00:00 2001 From: malmor <62105800+malmor@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:06:43 +0100 Subject: [PATCH] feat(api): add support for sort filter in runner jobs This commits allows users to configure the 'sort' filter as defined in [1], so that one can fetch the most recent jobs first. [1]: https://docs.gitlab.com/api/runners/#list-all-jobs-processed-by-a-runner --- 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 e4a37e8e3..87b6a8b3c 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",) + _list_filters = ("status", "sort") class Runner(SaveMixin, ObjectDeleteMixin, RESTObject):