Skip to content

Commit 0549afa

Browse files
authored
Merge pull request #2161 from nickbroon/nickbroon-jobs_scope
feat: add support for filtering jobs by scope
2 parents ead9f15 + 0e1c0dd commit 0549afa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab/v4/objects/jobs.py

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ class ProjectJobManager(RetrieveMixin, RESTManager):
244244
_path = "/projects/{project_id}/jobs"
245245
_obj_cls = ProjectJob
246246
_from_parent_attrs = {"project_id": "id"}
247+
_list_filters = ("scope",)
247248

248249
def get(self, id: Union[str, int], lazy: bool = False, **kwargs: Any) -> ProjectJob:
249250
return cast(ProjectJob, super().get(id=id, lazy=lazy, **kwargs))

0 commit comments

Comments
 (0)