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

Method get_review_comments

github/PullRequest.py:668–694  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments `_ :param sort: string 'created' or 'updated' :param direction: string 'asc' or 'desc' :param since: datetime

(
        self,
        *,
        sort: Opt[str] = NotSet,
        direction: Opt[str] = NotSet,
        since: Opt[datetime] = NotSet,
    )

Source from the content-addressed store, hash-verified

666
667 # v3: remove *, added here to force named parameters because order has changed
668 def get_review_comments(
669 self,
670 *,
671 sort: Opt[str] = NotSet,
672 direction: Opt[str] = NotSet,
673 since: Opt[datetime] = NotSet,
674 ) -> PaginatedList[PullRequestComment]:
675 """
676 :calls: `GET /repos/{owner}/{repo}/pulls/{pull_number}/comments <https://docs.github.com/en/rest/reference/pulls#review-comments>`_
677 :param sort: string 'created' or 'updated'
678 :param direction: string 'asc' or 'desc'
679 :param since: datetime
680 """
681 assert is_optional(sort, str), sort
682 assert is_optional(direction, str), direction
683 assert is_optional(since, datetime), since
684
685 url_parameters = NotSet.remove_unset_items({"sort": sort, "direction": direction})
686 if is_defined(since):
687 url_parameters["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ")
688
689 return PaginatedList(
690 github.PullRequestComment.PullRequestComment,
691 self._requester,
692 f"{self.url}/comments",
693 url_parameters,
694 )
695
696 def get_single_review_comments(self, id: int) -> PaginatedList[PullRequestComment]:
697 """

Callers 2

get_commentsMethod · 0.95
testGetReviewCommentsMethod · 0.80

Calls 4

is_optionalFunction · 0.90
is_definedFunction · 0.90
PaginatedListClass · 0.90
remove_unset_itemsMethod · 0.80

Tested by

no test coverage detected