-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension to "commits since" badge: allow counting from latest version tag #1955
Comments
Prior art: #993 |
Hi, thanks for the suggestion! It's a nice idea. To get the latest tag reliably currently requires many API calls (#875), so we may need a caching solution for that first. |
Yeah, at the end of the day we'd need to implement GitHub paginating. We can fetch up to 100 tags per repo per call, and unfortunately I don't see any obvious way to only fetch new tags. |
So Right now, I'm having the issue that a v0.1.11 release of mine is latest by date, but v1.0.1 is latest by SemVer. I can use |
- "latest" in GitHub releases means latest by date, which means backports are considered latest by definition - currently 0.1.11 is showing as latest :/ - using SemVer with the "tag" badge (not release anymore :/) more or less resolves this for the README, but GH releases page will always show by date :/ - "commits since" is also currently tracking "latest" release by date - no fix to this yet, c.f. badges/shields#1955 (comment)
- "latest" in GitHub releases means latest by date, which means backports are considered latest by definition - currently 0.1.11 is showing as latest :/ - using SemVer with the "tag" badge (not release anymore :/) more or less resolves this for the README, but GH releases page will always show by date :/ - "commits since" is also currently tracking "latest" release by date - no fix to this yet, c.f. badges/shields#1955 (comment) - manually putting the latest SemVer tag for now :/ :/ :/ :/
- in case a backport release is added, such as a backport of the upcoming v0.1.1 - "latest" in GitHub releases means latest by date, which means backports are considered latest by definition - using SemVer with the "tag" badge (not release anymore :/) more or less resolves this for the README, but GH releases page will always show by date :/ - "commits since" is also currently tracking "latest" release by date - no fix to this yet, c.f. badges/shields#1955 (comment) - manually putting the latest SemVer tag for now :/ :/ :/ :/
Many projects don't use Github Releases to track releases, but simply ordinary git tags. These show up in the GitHub releases page (for example: https://github.com/Lucretiel/joinery/releases), but aren't marked as releases in the API. It'd be nice if there was another endpoint– perhaps
/commits-since/USER/REPO/latest-tag.svg
– which counts commits after the most recent tag matching/\d+(\.\d+)/
The text was updated successfully, but these errors were encountered: