Instead of listing releases, list the tags instead: https://developer.github.com/v3/repos/#list-tags
On Thu, Oct 20, 2016 at 7:13 AM, Jinesh Choksi <[email protected]> wrote: > 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: > > curl -s "https://api.github.com/repos/ansible/ansible/releases" > > 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 > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/9ad03da1-6fec-4175-b1ce-e549727fd0ed%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/9ad03da1-6fec-4175-b1ce-e549727fd0ed%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8XaJSROey7xS0EeaMVm1%3D_dKaH2_X%2BhVhUtdt8CkMAfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
