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

feat: added Missing APIOption overload for PackagesClient.GetAll* #2923 #2934

Merged

Conversation

lars-zweifel
Copy link
Contributor

Resolves #2923


Before the change?

PackagesClient.GetAll* were not able to paginate and the results capped at 30 results

After the change?

Overload parameter APIOptions for PackagesClient.GetAll*
Methods. Extended the Tests for PackagesClient.GetAll* to behave the same as RepositoriesClient.GetAll*.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

lars-zweifel and others added 2 commits May 31, 2024 13:31
…tokit#2923

added missing APIOption overload for PackagesClient and ObservablePackagesClient
added overload for optional parameter packageVisibility to be a nonbreaking change
extended PackagesClientTests.cs to be conform with RepositoriesClientTests.cs to take ApiOptions into account
Copy link
Member

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

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

Thanks for contributing.

[ExcludeFromPaginationApiOptionsConventionTest("No api options available according to the documentation")]

This is interesting to see, since the docs definitely support taking page and per_page. I wonder if it didn't used to be supported and changed at some point recently?

@kfcampbell kfcampbell merged commit bdc1694 into octokit:main Jun 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[FEAT]: Missing APIOption overload for PackagesClient.GetAll*
2 participants