Skip to content

pages does not work for list_packages_for_organization #156

Open

Description

@olehm-ma

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

Activity

  1. Loki-Afro commented on Jan 31, 2023

    @Loki-Afro

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions