Skip to content

Commit b117ee3

Browse files
malmornejch
authored andcommitted
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
1 parent 425d0d5 commit b117ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/objects/runners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RunnerJobManager(ListMixin[RunnerJob]):
3838
_path = "/runners/{runner_id}/jobs"
3939
_obj_cls = RunnerJob
4040
_from_parent_attrs = {"runner_id": "id"}
41-
_list_filters = ("status",)
41+
_list_filters = ("status", "sort")
4242

4343

4444
class Runner(SaveMixin, ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)