-
-
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
Leading "v" is forcefully added in github release badges #1181
Comments
Yea, that doesn't look great. Some options:
There was a discussion years ago about 2, and the v seemed slightly preferable; don't feel a need to change that now. Since our aim is to provide consistent badges to users, I like to avoid configuration where possible, so I'd lean toward the last option. If we identify other formats which are less legible with the v prefix, we can easily add them. Option 3 is also easier to implement. |
I like that a lot.
Also a consideration. As a start, check could be if "tag = valid x.y.z semver" and add a "v" in that case. Otherwise don't? |
That's our aim. I wouldn't want to push projects to change their tags. Since tags with and without
Some folks use version schemes which are not valid semver like Are there examples of other projects with version number schemes that look bad with the |
Sure, not all projects use semver. No idea what made me belive that. :D
Those two seems totally valid and catch a lot of cases. |
Looks like we already have a function which does this, so we'd need to tweak it and add tests. A unit test in Ideally we'd also make sure we're calling that function everywhere. I see a few places like here where we aren't. Anywhere we change badge code, the badge should get a service test if it doesn't already have one. Would you like to make a PR? |
I would happily contribute lines to help with badges for this cool project, but I'm more on the non-code side of things... But with your findings and help, I hope that somebody else likes to tackle that. 👍 |
Maybe we could add a global query param Thoughts on this? |
In this case, I don't see a need for this to be configurable. Since our aim is to provide consistent badges to users, the less configuration we have, the better. |
I've started to draft some things for this piece of work, hope that's okay! |
Example:
It's a badge for this release on GitHub.
But the release tag there is
2017-05-05-Release-2.3.17
withoutv
.I understand that if you use straight semantic versioning for tags you are mostly ok.
Though, there are different recommendations on the usage of "v1.0" or "1.0".
The text was updated successfully, but these errors were encountered: