summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brown <nickbroon@graphiant.com>2022-07-21 19:12:02 +0100
committerNick Brown <nickbroon@graphiant.com>2022-07-21 19:12:02 +0100
commit0e1c0dd795886ae4741136e64c33850b164084a1 (patch)
treef68dc09e97b02775fb57810d4c4988f9b4423b48
parentfcbced88025dcf2ff980104bec1d48df3258bc7c (diff)
downloadgitlab-0e1c0dd795886ae4741136e64c33850b164084a1.tar.gz
feat: add support for filtering jobs by scope
See: 'scope' here: https://docs.gitlab.com/ee/api/jobs.html#list-project-jobs
-rw-r--r--gitlab/v4/objects/jobs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/v4/objects/jobs.py b/gitlab/v4/objects/jobs.py
index 54c4f33..cfe1e62 100644
--- a/gitlab/v4/objects/jobs.py
+++ b/gitlab/v4/objects/jobs.py
@@ -244,6 +244,7 @@ class ProjectJobManager(RetrieveMixin, RESTManager):
_path = "/projects/{project_id}/jobs"
_obj_cls = ProjectJob
_from_parent_attrs = {"project_id": "id"}
+ _list_filters = ("scope",)
def get(self, id: Union[str, int], lazy: bool = False, **kwargs: Any) -> ProjectJob:
return cast(ProjectJob, super().get(id=id, lazy=lazy, **kwargs))