badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.9k stars 5.51k forks source link

refactor - usage renderVersionBadge - part 2 [amo archlinux aur bower cdnjs chromewebstore cocoapods conan conda cookbook cpan cran crates ctan curseforge debian docker dub eclipsemarketplace elmpackage f-droid factorio fedora feedz flathub galaxytoolshed gem gitea github gitlab greasyfork hackage hexpm homebrew itunes jenkins jetbrains jitpack jsr mavenmetadata modrinth nexus npm nuget openvsx opm ore packagist piwheels polymart pub puppetforge pypi ros scoop snapcraft spack spiget thunderstore twitch ubuntu vaadindirectory vcpkg visualstudioappcenter visualstudiomarketplace vpm wordpress] #10615

Closed jNullj closed 1 month ago

jNullj commented 1 month ago

This pull request refactors the codebase to use the renderVersionBadge function for rendering version badges. Refactored services are wordpress, conda and aur. The pull request also includes tests for all the new options. 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

new optoins for renderVersionBadge added in this PR are prefix and postfix for the renderVersionBadge message.

we need to run tests for all services that use renderVersionBadge as i changed the function.

github-actions[bot] commented 1 month ago
Warnings
:warning: This PR modified service code for aur but not its test code.
That's okay so long as it's refactoring existing code.
:warning: This PR modified service code for conda but not its test code.
That's okay so long as it's refactoring existing code.
:warning: This PR modified service code for wordpress but not its test code.
That's okay so long as it's refactoring existing code.
Messages
:book: :sparkles: Thanks for your contribution to Shields, @jNullj!

Generated by :no_entry_sign: dangerJS against c19f8c128145289a0a99aa34bc3b5efe750fadf3

jNullj commented 1 month ago

Docker cloud failed due to https://github.com/badges/shields/issues/10247, not related to this PR should not block merge Fix for archlinux test failure at https://github.com/badges/shields/pull/10616, not related to this PR should not block merge