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

Handle pagination via --page flags for organisation flag (--org) and user flag (--user) #22

Closed
nicokosi opened this issue Mar 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@nicokosi
Copy link
Owner

Related resources:

@nicokosi nicokosi added the enhancement New feature or request label Mar 11, 2022
nicokosi added a commit that referenced this issue Mar 11, 2022
nicokosi added a commit that referenced this issue Mar 14, 2022
Current page can be set via a new '--page' flag (default: 1):

    $ gh collab-scanner --org softwarevidal --page 2
    $ gh collab-scanner --user nicokosi --page 2

Page size is hard-coded to 100.
nicokosi added a commit that referenced this issue Mar 14, 2022
Current page can be set via a new '--page' flag (default: 1):

    $ gh collab-scanner --org softwarevidal --page 2
    $ gh collab-scanner --user nicokosi --page 2

Page size is hard-coded to 100.

PS:

- I could not retrieve pagination info (page x on y) because
of this limitation 😭:
cli/go-gh#23

- I tried to guess current page via Exec for
"gh repo list $user --json id --limit 1000" but response time
was very slow. 🐌
See https://github.com/cli/go-gh/blob/trunk/example_gh_test.go#L16
nicokosi added a commit that referenced this issue Mar 14, 2022
Current page can be set via a new '--page' flag (default: 1):

    $ gh collab-scanner --org softwarevidal --page 2
    $ gh collab-scanner --user nicokosi --page 2

Page size is hard-coded to 100.

PS:

- I could not retrieve pagination info (page x on y) because
of this limitation 😭:
cli/go-gh#23

- I tried to guess current page via Exec for
"gh repo list $user --json id --limit 1000" but response time
was very slow. 🐌
See https://github.com/cli/go-gh/blob/trunk/example_gh_test.go#L16
nicokosi added a commit that referenced this issue Mar 14, 2022
Current page can be set via a new '--page' flag (default: 1):

    $ gh collab-scanner --org softwarevidal --page 2
    $ gh collab-scanner --user nicokosi --page 2

Page size is hard-coded to 100.

PS:

- I could not retrieve pagination info (page x on y) because
of this limitation 😭:
cli/go-gh#23

- I tried to guess current page via Exec for
"gh repo list $user --json id --limit 1000" but response time
was very slow. 🐌
See https://github.com/cli/go-gh/blob/trunk/example_gh_test.go#L16
nicokosi added a commit that referenced this issue Mar 14, 2022
Current page can be set via a new '--page' flag (default: 1):

    $ gh collab-scanner --org softwarevidal --page 2
    $ gh collab-scanner --user nicokosi --page 2

Page size is hard-coded to 100.

PS:

- I could not retrieve pagination info (page x on y) because
of this limitation 😭:
cli/go-gh#23

- I tried to guess current page via Exec for
"gh repo list $user --json id --limit 1000" but response time
was very slow. 🐌
See https://github.com/cli/go-gh/blob/trunk/example_gh_test.go#L16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant