Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate RepositoriesService.List #2988

Merged
merged 2 commits into from Nov 7, 2023
Merged

Conversation

WillAbides
Copy link
Contributor

Closes #2987

This deprecates RepositoriesService.List and replaces it with two new methods: RepositoriesService.ListByUser and RepositoriesService.ListByAuthenticatedUser. See #2987 for the justification.

Copy link

codecov bot commented Nov 4, 2023

Codecov Report

Merging #2988 (11a8933) into master (a5b1cea) will decrease coverage by 0.18%.
The diff coverage is 41.66%.

@@            Coverage Diff             @@
##           master    #2988      +/-   ##
==========================================
- Coverage   98.11%   97.94%   -0.18%     
==========================================
  Files         149      149              
  Lines       12808    12836      +28     
==========================================
+ Hits        12567    12572       +5     
- Misses        166      188      +22     
- Partials       75       76       +1     
Files Coverage Δ
github/repos.go 96.19% <41.66%> (-2.70%) ⬇️

@WillAbides
Copy link
Contributor Author

To address @gmlewis's comment from the issue, I think the context of having a user parameter is enough to make it clear what ListByUser does.

Also, in the issue I proposed ListForUser and ListForAuthenticatedUser, but I changed it to ListByUser and ListByAuthenticatedUser because I found precedents "RepositoryService.ListByOrg" and "IssuesService.ListByRepo".

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @WillAbides !
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Nov 4, 2023
@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Nov 7, 2023
@gmlewis
Copy link
Collaborator

gmlewis commented Nov 7, 2023

Thank you, @valbeat !
Merging.

@gmlewis gmlewis merged commit 630bfdb into google:master Nov 7, 2023
5 of 7 checks passed
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.

Unclear godoc for RepositoriesService.List
3 participants