Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list the releases of a repository?

Can the GitHub API return a list of repository's releases, along with the date each release was created?

The "releases" API is acting unexpectedly, e.g. 0 releases for rails:

>> curl https://api.github.com/repos/rails/rails/releases
[

]

Additionally, is there a way to know if a release is alpha, beta or stable?

like image 249
naor Avatar asked Aug 22 '13 15:08

naor


People also ask

How do I see my GitHub releases?

Viewing releases On GitHub.com, navigate to the main page of the repository. To the right of the list of files, click Releases. At the top of the Releases page, click Releases.

What are releases in Git?

Releases are deployable software iterations you can package and make available for a wider audience to download and use. Releases are based on Git tags, which mark a specific point in your repository's history. A tag date may be different than a release date since they can be created at different times.

What is Releases section GitHub?

Releases are first-class objects with changelogs. and binary assets that present a full project history beyond Git artifacts. They're accessible from a repository's homepage: Releases are accompanied by release notes and links to download the software. or source code.

What are releases and packages in GitHub?

Releases are GitHub's way of packaging and providing software to your users. You can think of it as a replacement to using downloads to provide software. With Releases, you can provide links to binary files, as well as release notes describing your changes. At their core, Releases are based on Git tags.


2 Answers

I don't think you can specifically do releases. But you can get tags.

curl https://api.github.com/repos/rails/rails/tags

Source: http://developer.github.com/v3/repos/#list-tags

Edit:

They released the releases API today.

http://developer.github.com/v3/repos/releases/

like image 91
kristenmills Avatar answered Nov 08 '22 14:11

kristenmills


This question is old, however Google still lead me here and the answers are dated. So for any others that find themselves here:

GitHub has sense added a releases endpoint: https://docs.github.com/en/rest/reference/releases

An example of getting one (via curl):

curl https://api.github.com/repos/rails/rails/releases
like image 11
poy Avatar answered Nov 08 '22 13:11

poy