Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/build: consider making release information also available via GitHub Releases #45185

Closed
ZacWolf opened this issue Mar 23, 2021 · 3 comments
Closed

Comments

@ZacWolf
Copy link

@ZacWolf ZacWolf commented Mar 23, 2021

When trying to access: https://docs.github.com/rest/reference/repos#get-the-latest-release

Is this project handling releases in a way that would break the GitHub API?
Is that intentional, or an issue of no one being aware?

Would be nice to be able to automate notification/upgrade for the latest released version, via the GitHub API.

@dmitshur
Copy link
Contributor

@dmitshur dmitshur commented Mar 23, 2021

The Go project provides an API for listing releases at https://golang.org/dl/?mode=json (also see #34864). It does not use GitHub releases at this time. It does use git tags, which are mirrored from the canonical https://go.googlesource.com/go source repository, so you could detect those.

I'm not aware if there's another issue tracking this. It could be a reasonable feature request to consider, but not a high priority at this time.

CC @golang/release.

@dmitshur dmitshur changed the title Why does github api /releases/latest return an error? x/build: consider making release information also available via GitHub Releases Mar 23, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 23, 2021
@dmitshur dmitshur modified the milestones: Unreleased, Backlog Mar 23, 2021
@dmitshur
Copy link
Contributor

@dmitshur dmitshur commented Mar 23, 2021

Oh, I found an existing issue, so closing as duplicate of #15966.

@dmitshur dmitshur closed this Mar 23, 2021
@ZacWolf
Copy link
Author

@ZacWolf ZacWolf commented Mar 24, 2021

Thanks for the information, about ?mode=json URL. It sucks that it's another schema to parse-out, but it's better than parsing the HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants