You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Differentiate between releases and pre-releases #2239
The Tags endpoint doesn’t include this info and the Releases endpoint doesn’t include all tags (so it would only work if a repo uses releases)
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.
Activity
sindresorhus commentedon Jul 21, 2019
PR welcome :)
fregante commentedon Jul 22, 2019
The Tags endpoint doesn’t include this info and the Releases endpoint doesn’t include all tags (so it would only work if a repo uses releases)
The Tag object doesn’t include references to the related release either: https://developer.github.com/v4/object/tag/
The only way to do this seems to be making 2 queries and then check filter out any tags that are in prereleases.
More generically, I think we can just exclude tags that include
-which seems to be used for prereleaseskidonng commentedon Mar 19, 2020
Quite a few repos have dates in their tag names (for example
YYYY-MM-DD).fregante commentedon Mar 20, 2020
I think we already have a condition that excludes tags that aren’t “version-like”
We’ll never catch all the edge cases but, maybe:
x.y-bandx.y.z-btagsin our existing v4 query, also check if we have information about a tag being a pre-release or “latest release”The first one is enoughfregante commentedon Mar 20, 2020
This is why we can't use GitHub's "latest release" feature: