mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Add sort order and direction for getting comments (#2544)
Note: This is a breaking change. The order of parameters of `PullRequest.get_review_comments` has changed to match other `get_comments` methods and Github API parameter order. Users should change `PullRequest.get_review_comments(since)` to `PullRequest.get_review_comments(since=since)`. Calling without parameter is not breaking: `PullRequest.get_review_comments()`
This commit is contained in:
@@ -2957,8 +2957,8 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
):
|
||||
"""
|
||||
:calls: `GET /repos/{owner}/{repo}/pulls/comments <https://docs.github.com/en/rest/reference/pulls#review-comments>`_
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
:param sort: string 'created', 'updated', 'created_at'
|
||||
:param direction: string 'asc' or 'desc'
|
||||
:param since: datetime.datetime
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user