Github API `/repos/<repo>/releases/latest` not working
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the curl, grep, and sed commands against rust-lang/rustup and rust-lang/rust, then inspect how rustup releases are published on GitHub. Determine what prevents the /repos/<repo>/releases/latest endpoint from returning a release for rustup; done means the endpoint exposes the latest rustup release tag as shown by the existing command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, rust
- Domain
- api, release
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100