X Tutup
Skip to content

Commit d5dc73d

Browse files
malmornejch
authored andcommitted
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]: #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>
1 parent 0bfaa6b commit d5dc73d

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", "sort")
41+
_list_filters = ("status", "order_by", "sort")
4242

4343

4444
class Runner(SaveMixin, ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)
X Tutup