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

Org Repository Pagination Only Returns First Page #2963

Open
squatched opened this issue Apr 30, 2024 · 0 comments
Open

Org Repository Pagination Only Returns First Page #2963

squatched opened this issue Apr 30, 2024 · 0 comments

Comments

@squatched
Copy link

squatched commented Apr 30, 2024

My org has hundreds of repositories, but when I call Github().get_organization(org_slug).get_repos(sort="full_name", type="all"), the resulting object only ever has at most 50 objects in it (repos.totalCount is 50 as well as the size of the resulting get_page(0)) and when I try and get any page other than 1, I get an empty list returned.

I would expect this to work:

repos = github.Github().get_organization("my_org").get_repos(sort="full_name", type="all")

assert repos.totalCount > 50
assert len(repos.get_page(1)) != 0
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

No branches or pull requests

1 participant