Skip to content

Add sort order and direction for getting comments#2544

Merged
EnricoMi merged 5 commits intoPyGithub:masterfrom
EnricoMi:get-sorted-comments
Jun 7, 2023
Merged

Add sort order and direction for getting comments#2544
EnricoMi merged 5 commits intoPyGithub:masterfrom
EnricoMi:get-sorted-comments

Conversation

@EnricoMi
Copy link
Collaborator

@EnricoMi EnricoMi commented Jun 7, 2023

Some methods getting comments miss sort query parameters.

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()

@EnricoMi EnricoMi requested a review from JLLeitschuh June 7, 2023 08:41
@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9f52e94) 98.68% compared to head (2d660cc) 98.68%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2544   +/-   ##
=======================================
  Coverage   98.68%   98.68%           
=======================================
  Files         117      117           
  Lines       11825    11831    +6     
=======================================
+ Hits        11670    11676    +6     
  Misses        155      155           
Impacted Files Coverage Δ
github/Repository.py 97.20% <ø> (ø)
github/PullRequest.py 97.52% <100.00%> (+0.03%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@JLLeitschuh JLLeitschuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@EnricoMi EnricoMi merged commit a8e7c42 into PyGithub:master Jun 7, 2023
@EnricoMi EnricoMi deleted the get-sorted-comments branch June 7, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants