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

Commit165f848

Browse files
fix: Haveparticipants() method usehttp_list()
Previously it was using `http_get()` but the `participants` APIreturns a list of participants. Also by using this then we will warnif only a subset of the participants are returned.Closes:#2913
1 parent51d8f88 commit165f848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎gitlab/mixins.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,9 @@ class ParticipantsMixin(_RestObjectBase):
911911

912912
@cli.register_custom_action(cls_names=("ProjectMergeRequest","ProjectIssue"))
913913
@exc.on_http_error(exc.GitlabListError)
914-
defparticipants(self,**kwargs:Any)->Dict[str,Any]:
914+
defparticipants(
915+
self,**kwargs:Any
916+
)->Union[gitlab.client.GitlabList,List[Dict[str,Any]]]:
915917
"""List the participants.
916918
917919
Args:
@@ -929,7 +931,7 @@ def participants(self, **kwargs: Any) -> Dict[str, Any]:
929931
"""
930932

931933
path=f"{self.manager.path}/{self.encoded_id}/participants"
932-
result=self.manager.gitlab.http_get(path,**kwargs)
934+
result=self.manager.gitlab.http_list(path,**kwargs)
933935
ifTYPE_CHECKING:
934936
assertnotisinstance(result,requests.Response)
935937
returnresult

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp