Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

Commit 212b128

Browse files
committed
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 <[email protected]>
1 parent b117ee3 commit 212b128

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)