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

pages does not work for list_packages_for_organization #156

Open
olehm-ma opened this issue Nov 28, 2022 · 1 comment
Open

pages does not work for list_packages_for_organization #156

olehm-ma opened this issue Nov 28, 2022 · 1 comment

Comments

@olehm-ma
Copy link

pages function returns only the first page of packages

api = GhApi(token=gh_token)
pack_pages = pages(api.packages.list_packages_for_organization, 5, org="my_org", package_type="npm")
for page in pack_pages:
    for item in page:
        print(item['name'])

this code will print name of the packages from the first page only

@Loki-Afro
Copy link

in my case i had a spelling issue .. wrote pages instead of paged

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

2 participants