badges / gh-badges

Go to badges/shields. Especially if you don't know why. (This repo is old.)
http://img.shields.io/
Creative Commons Zero v1.0 Universal
86 stars 29 forks source link

Allow custom labels for integrated services. #27

Closed ezzatron closed 10 years ago

ezzatron commented 10 years ago

This PR allows for customizable labels on any badge that is driven by a third-party service. Some example usages for this include:

Custom labels can be added to any of these services by simply adding a 'label' query parameter (e.g. ?label=foo). The value of the label parameter follows the same escaping rules as other custom text.

Example images from a Heroku instance running this PR:

Node 0.6 Travis status Jekyll master Coveralls status Localeval NPM downloads Doctrine ORM Packagist downloads

espadrine commented 10 years ago

Kudos to you for showing me the working result!

Also, this pull request is a great idea! Insta-merge!

We don't need to escapeFormat() the label, since there's no issue around - and _ — that's only when used in b.adge.me/:it's_over-9000!-red.svg.

ezzatron commented 10 years ago

Awesome! Can't wait to use it :)

espadrine commented 10 years ago

@ezzatron It's deployed now!