You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like a convenient way to provide a new template without having to submit it on this repo. For example, if I have a homemade template like this, I can request https://img.shields.io/static/v1.svg?label=hello&message=world&color=success&url=https%3A%2F%2Fgist.githubusercontent.com%2Fpcr910303%2Ff4f4a518e0a5a50d7d1060d3259b9897%2Fraw%2Fd0b6e2df394aba541733a6d3e8a0ae485ad92dfa%2Fmodern-template.svg to get a badge based on the provided template.
The text was updated successfully, but these errors were encountered:
I don't think this is something we should support, for two reasons:
DoT has a published security vulnerability and we're going to replace it with template literals (Move badge templates from doT → Template literals #2428), and I'd question the amount of security exposure relative to the amount of benefit in adding something like this.
An explicit goal of Shields to provide consistency of badges. It's been argued that we should provide fewer formats, not more (see e.g. follow-on discussion in Add logo style badges #1478). I'd like to add an action button format (see Add an action button format #2824) though I'm not sure there is consensus on that.
In general I feel like we should at most support new formats when there is a compelling use case that doesn't make sense with the other formats.
My suggestion would be to render the badge yourself in something like Runkit or Now 2.0. If you need dynamic data from an existing badge, you can hit the Shields JSON endpoint.
paulmelnikow
added
core
Server, BaseService, GitHub auth, Shared helpers
npm-package
Badge generation and badge templates
and removed
core
Server, BaseService, GitHub auth, Shared helpers
labels
May 29, 2019
📋 Description
I would like a convenient way to provide a new template without having to submit it on this repo. For example, if I have a homemade template like this, I can request
https://img.shields.io/static/v1.svg?label=hello&message=world&color=success&url=https%3A%2F%2Fgist.githubusercontent.com%2Fpcr910303%2Ff4f4a518e0a5a50d7d1060d3259b9897%2Fraw%2Fd0b6e2df394aba541733a6d3e8a0ae485ad92dfa%2Fmodern-template.svg
to get a badge based on the provided template.The text was updated successfully, but these errors were encountered: