Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e1c0dd

Browse files
committed
feat: add support for filtering jobs by scope
See: 'scope' here:https://docs.gitlab.com/ee/api/jobs.html#list-project-jobs
1 parentfcbced8 commit0e1c0dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎gitlab/v4/objects/jobs.py‎

Lines changed: 1 addition & 0 deletions
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
defget(self,id:Union[str,int],lazy:bool=False,**kwargs:Any)->ProjectJob:
249250
returncast(ProjectJob,super().get(id=id,lazy=lazy,**kwargs))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp