Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get releases empty in github api

Tags:

github

api

I try to get idea-community releases with following, but it return empty

curl "https://api.github.com/repos/JetBrains/intellij-community/releases"

but when the releases is exist in here

how to get its releases

like image 506
anzeaucha Avatar asked Jan 28 '16 12:01

anzeaucha


1 Answers

From the documentation:

This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the Repository Tags API.

GitHub's UI is confusing, but this repository doesn't actually have any releases, which are a GitHub-specific concept. The "releases" you are seeing are actually just regular Git tags.

Try this instead:

curl https://api.github.com/repos/JetBrains/intellij-community/tags

See also What's the difference between tag and release?

like image 78
Chris Avatar answered Oct 17 '22 15:10

Chris