Open theory opened 9 years ago
Or perhaps:
"badges": [
{
"name": "travis",
"img": "https://travis-ci.org/theory/pgtap.png",
"link": "https://travis-ci.org/theory/pgtap"
},
{
"name": "coveralls",
"img": "https://coveralls.io/repos/theory/sqitch/badge.svg",
"link": "https://coveralls.io/r/theory/sqitch"
}
]
Perhaps we shouldn't accept full URLs. We should already know that a travis badge is at travis-ci.org, for example. This way people couldn't just push random links up to the site.
My thought is to let them put in whatever they want, but the site will only display those from know domains.
That works too. Would be good to sanity-check on upload too.
How about this?
"badges": {
"travis": "theory/pgtap",
"coveralls": "theory/pgtap"
}
What other badges might people want?
Add a section to the
resources
section of the meta spec to allow specification of badges. Perhaps we'd have a whitelist of badges to display on the site, such as those for Travis, GitHub, Coveralls, and badge.fury.io. It might look something like this: