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

Should the participants method usehttp_list? #2913

Closed
@JohnVillalovos

Description

@JohnVillalovos

Currently theparticipants() method is usinghttp_get().

Should it usehttp_list()? I'm thinking yes.@nejch What do you think?

https://docs.gitlab.com/ee/api/merge_requests.html#get-single-merge-request-participants

defparticipants(self,**kwargs:Any)->Dict[str,Any]:
"""List the participants.
Args:
all: If True, return all the items, without pagination
per_page: Number of items to retrieve per request
page: ID of the page to return (starts with page 1)
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabListError: If the list could not be retrieved
Returns:
The list of participants
"""
path=f"{self.manager.path}/{self.encoded_id}/participants"
result=self.manager.gitlab.http_get(path,**kwargs)
ifTYPE_CHECKING:
assertnotisinstance(result,requests.Response)
returnresult

Possibly related is#2912

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp