Unable to find out information about Ansible releases via GitHub API

24 views
Skip to first unread message

Jinesh Choksi

unread,
Oct 20, 2016, 1:00:45 PM10/20/16
to Ansible Project
Hi

I was interested in finding out what the latest available Ansible releases were via GitHub's API.

The following curl command should have showed me all the available "published" releases of Ansible:


Specifically, GitHub's API documentation (https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository) states that: "This returns a list of releases, which does not include regular Git tags that have not been associated with a release." 

Currently the above only outputs information for a single release: "tag_name": "v2.0.0.1-1"

I was wondering if this was correct since the API call I was looking to use to find the latest release also returns v2.0.0.1-1. (curl -s "https://api.github.com/repos/ansible/ansible/releases/latest")

I apologise if this isn't an Ansible issue as it could be something wrong with GitHub since for some reason, I also can't find out the latest release of git is via GitHub's API. (Running curl -s "https://api.github.com/repos/git/git/releases/latest", returns a "message": "Not Found" response)

regards,
Jinesh

Matt Martz

unread,
Oct 20, 2016, 2:42:30 PM10/20/16
to ansible...@googlegroups.com
Instead of listing releases, list the tags instead:


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9ad03da1-6fec-4175-b1ce-e549727fd0ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net

Brian Coca

unread,
Oct 20, 2016, 4:12:02 PM10/20/16
to ansible...@googlegroups.com
The Github releases only works if the project uses that feature, we tried for a while but did not find it very useful (stopped at 2.0 as you've already found out).


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages