Skip to content

Update documentation around --limit flag restriction #4888

@GadgetSteve

Description

@GadgetSteve

Describe the feature or problem you’d like to solve

A number of options have a -L or --limit option with defaults (20 or 30) and can be supplied with a --limit n where n is a positive integer option, e.g.:

gh issue list --state=open --limit=2000 --json=number

However, if the user needs to get a list of all of the open issue numbers they need to either guess how many there might be or supply a very high number.

Proposed solution

Either have a --nolimit flag or allow either --limit=0 or --limit=-1 to mean no limit. This would allow things like pre-populating a list of all open tickets for pre-commit, etc. hooks to use to validate commit messages include only open ticket numbers without possibly doing multiple calls during the commit message processing.

Alternatively, a documented mechanism to get more items when piping output could be added - to me this seems more complex to both implement and use.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsgh-issuerelating to the gh issue commandhelp wanted candidateIssue may be marked as help-wanted but not yet ready to accept PR

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions