Skip to content

Listing releases and assets #1353

@ottah

Description

@ottah

Describe the feature or problem you’d like to solve

I would like the ability to list releases/assets from a repository. This would be a quality of life improvement over checking for latest releases via the browser and simplify scripting an environment.

Proposed solution

List releases in a repository

$ gh repo releases cli/cli
0.4
0.2
0.1
...

List assets in a release by version or latest

$ gh repo releases cli/cli latest
gh_0.10.1_checksums.txt 1.09 KB
gh_0.10.1_linux_386.deb 5.41 MB
gh_0.10.1_linux_386.rpm 5.4 MB

$ gh repo releases cli/cli 0.2
gh_0.2_checksums.txt 1.09 KB
gh_0.2_checksums.txt 1.09 KB
...

Assets can be listed with their full URL with a flag e.g. --url/-u.
This will allow users to click the URLs to open in their browser (if their terminal supports links) or use wget/curl in a script.

$ gh repo releases cli/cli latest --url
https://github.com/cli/cli/releases/download/v0.10.1/gh_0.10.1_linux_386.deb
https://github.com/cli/cli/releases/download/v0.10.1/gh_0.10.1_linux_amd64.deb
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    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