Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

How to get the latest release of a repository? #62

Open
michaelkarrer81 opened this issue Feb 28, 2017 · 0 comments
Open

How to get the latest release of a repository? #62

michaelkarrer81 opened this issue Feb 28, 2017 · 0 comments

Comments

@michaelkarrer81
Copy link

I try to get the latest release of a repository but i cant figure out how to correctly do this with python-github3?

i know hot to get all the releases and i think that the first of them may be always the latest but is this true and how can i be sure?

latest_release = None
releases = online_repo.releases()
for release in releases:
    latest_release = release
    break

Just like in:
GET /repos/:owner/:repo/releases/latest
https://developer.github.com/v3/repos/releases/#get-the-latest-release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant