gojp / goreportcard

A report card for your Go application
https://goreportcard.com
Apache License 2.0
1.99k stars 252 forks source link

More customization for shields.io #395

Open everdrone opened 2 years ago

everdrone commented 2 years ago

Decided to open a new issue as a continuation of https://github.com/gojp/goreportcard/issues/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:

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