Skip to content
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

More customization for shields.io #395

Open
everdrone opened this issue Aug 22, 2022 · 0 comments
Open

More customization for shields.io #395

everdrone opened this issue Aug 22, 2022 · 0 comments

Comments

@everdrone
Copy link

Decided to open a new issue as a continuation of #304, since it was closed and marked as stale.

It would be nice to have the query parameters available by default on shields.io badges on this badge as well.
Specifically these parameters:

  • color
  • labelColor
  • logo
  • logoColor
  • label
  • message (probably not this one since it's gonna override the report result)
  • logoWidth
  • style (this one seems to be available already)

Currently the badge is redirected to the URL:

https://img.shields.io/badge/<LABEL>-<MESSAGE>-<COLOR>

Instead, it could be redirected to:

https://img.shields.io/static/v1?label=<LABEL>&message=<MESSAGE>&color=<COLOR>

By appending the other parameters to the query string:

https://img.shields.io/static/v1?label=go%20report&message=A+&color=ff69b4&logo=go

example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant