MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_review_requests

Method get_review_requests

github/PullRequest.py:790–810  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers `_ :rtype: tuple of :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` and of :class:`github.PaginatedList.Pagi

(self)

Source from the content-addressed store, hash-verified

788 )
789
790 def get_review_requests(self) -> tuple[PaginatedList[NamedUser], PaginatedList[Team]]:
791 """
792 :calls: `GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers <https://docs.github.com/en/rest/reference/pulls#review-requests>`_
793 :rtype: tuple of :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser` and of :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
794 """
795 return (
796 PaginatedList(
797 github.NamedUser.NamedUser,
798 self._requester,
799 f"{self.url}/requested_reviewers",
800 None,
801 list_item="users",
802 ),
803 PaginatedList(
804 github.Team.Team,
805 self._requester,
806 f"{self.url}/requested_reviewers",
807 None,
808 list_item="teams",
809 ),
810 )
811
812 def get_labels(self) -> PaginatedList[Label]:
813 """

Callers 2

testReviewRequestsMethod · 0.80

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected