Skip to content

Extend gh release list to add --json flag #4572

@stevehipwell

Description

@stevehipwell

Describe the feature or problem you’d like to solve

With GitHub being the primary source of OSS software it's a pretty common requirement to install the latest version from GitHub releases. The issue is that the current gh release list command has no way of getting the latest version, defining the sort order or filtering by release name. This is made even harder to implement by the lack of JSON output from the gh release list command.

Proposed solution

Support the --json and --jq flags that are in gh release view. It would be great is the --json flag worked without a value or with a catch-all such as --json ALL to return all fields.

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-releaserelating to the gh release commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions