git-shields

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2013 License: Apache-2.0, MIT Imports: 12 Imported by: 0

README

⛨ Buckler ⛨

Build Status Buckler Shield Get Hype MIT License

Buckler is Shields as a Service (Shaas, or alternatively, Badges as a Service) for use in GitHub READMEs, or anywhere else. Use buckler with your favorite continuous integration tool, performance monitoring service API, or ridiculous in-joke to surface information.

Buckler is available hosted at b.repl.ca. YOu may use the API to generate shields at runtime, pregenerate them and host them on your own service, or run your own copy of Buckler to protect important company secrets.

API

Buckler tries to make creating shields easy. Each shield request is a url that has three parts:

  • subject
  • status
  • colour

Parts are separated by a hyphen. The request is suffixed by .png and prefixed with the Buckler host and API version, likely b.repl.ca/v1/. Requests will take the form: http://b.repl.ca/v1/$SUBJECT-$STATUS-$COLOR.png

Examples

Valid colours

  • brightgreen ⇨
  • green ⇨
  • yellowgreen ⇨
  • yellow ⇨
  • orange ⇨
  • red ⇨
  • grey ⇨
  • lightgrey ⇨
  • blue ⇨
Grey?

Don't worry; gray and lightgray work too.

Escaping underscores and hyphens

Hyphens (-) are used to delimit individual fields in your shield request. To include a literal hyphen, use two hyphens (--):

http://b.repl.ca/v1/really--cool-status-yellow.png

Similarly, underscores (_) are used to indicated spaces. To include a literal underscore, use two underscores (__):

http://b.repl.ca/v1/__private-method_name-lightgrey.png

URL Safe

Buckler API requests are just HTTP GETs, so remember to URL encode!

http://b.repl.ca/v1/uptime-99.99%25-yellowgreen.png

Try It Out

Play around with the simple form on b.repl.ca

Thanks

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL