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

Support per_page search parameter #1167

Merged
merged 2 commits into from
Nov 18, 2023
Merged

Conversation

ccotter
Copy link
Contributor

@ccotter ccotter commented Nov 18, 2023

Update the following search_* APIs to forward the per_page parameter.

  • search_code
  • search_commits
  • search_issues
  • search_repositories
  • search_users

Test plan: updated unit tests to verify per_page parameter. Tested manually by query search_issues(..., per_page=1) and verified the results arrived one at a time in each http response.

Closes #1166

Version Information

Python 3.10, using the latest version of github3.py (main branch)

Minimum Reproducible Example

gh.search_issues(..., per_page=1) # The actual parameter sent in the http request is per_page=100

Update the following search_* APIs to forward the `per_page` parameter.
 - search_code
 - search_commits
 - search_issues
 - search_repositories
 - search_users

Test plan: updated unit tests to verify per_page parameter. Tested
manually by query `search_issues(..., per_page=1)` and verified the
results arrived one at a time in each http response.

Closes sigmavirus24#1166
@sigmavirus24 sigmavirus24 merged commit 821f3c1 into sigmavirus24:main Nov 18, 2023
11 checks passed
@ccotter ccotter deleted the per-page branch November 18, 2023 04:19
@ccotter
Copy link
Contributor Author

ccotter commented Nov 18, 2023

Thanks for the quick review!

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.

per_page not respected in search_issues.py
2 participants