Skip to content

Github API /repos/<repo>/releases/latest not working #2824

Open
@pierwill

Description

@pierwill

I am trying to get the number of the latest rustup release with the following:

curl --silent "https://api.github.com/repos/rust-lang/rustup/releases/latest" | # Get latest release from GitHub api
    grep '"tag_name":' |                                                 # Get tag line
    sed -E 's/.*"([^"]+)".*/\1/'                                         # Pluck JSON value

This is currently not working with the rustup repository, although it does work with rust-lang/rust:

$ curl --silent "https://api.github.com/repos/rust-lang/rust/releases/latest" | 
    grep '"tag_name":' |                                           
    sed -E 's/.*"([^"]+)".*/\1/'                                   
1.53.0

This API would be great to have enabled for this repository!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions