-
-
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
Refactor - use renderVersionBadge - part 3 [luarocks gitlab nuget feedz] #10630
Refactor - use renderVersionBadge - part 3 [luarocks gitlab nuget feedz] #10630
Conversation
Loarocks does not appear to have version conventions and there are no issues in history that require usage of existing color usage. For better consistency use color scheme as the rest of the badges. Also add scm and cvs as preview in renderVersionBadge
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me! Switching to renderVersionBadge
will modify colors in some cases, but I don't think the colors in these badges were ever motivated by vertical consistency with the upstream service; consequently improving horizontal consistency across Shields.io badges is a good thing.
Hi @PyvesB - is there a reason |
|
@jNullj
It is rendered with the |
@robaho Thank you for clarifying, I think i better understand now what you find missing. |
This pull request refactors the codebase to use the
renderVersionBadge
function for rendering version badges.Refactored services are luarocks, gitlab, feedz and nuget.
The pull request also modifies tests where needed.
This change is part of the ongoing work to address issue #2026 - refactor all versions to use
renderVersionBadge
And also helps archive user override for version prefix as mentioned in #10574
Additionally, the scm and cvs versions are now included as previews in the renderVersionBadge function project-wide.
And a comment was added to clojars to make it clear it uses non-standard style while pointing to relevant PR and commit.
The only services left for the next part are found using this regex first to see if all imports belong to version.js
imports import\s*(?:[ \n\t]*(?:[^ \n\t\{\}]+[ \n\t]*,?)?\s*\{[^}]*\brenderVersionBadge\b[^}]*\})?\s*from\s*(['"])([^'"\n]+)\1
Then i used
grep -rl "category = 'version'" . | xargs grep -L "renderVersionBadge"
to find all missingrenderVersionBadge
usages for badges in the versions category.which only leaves
visual-studio-app-center-releases-osversion
uses os minimum versions so its not relevant.