Comments (7)
More info: for Travis, the URL format looks like:
https://travis-ci.org/mathiasbynens/jsesc.png?branch=master
gh-badges doesn’t support this yet AFAICT but it’s definitely possible to add support for this. Wanna submit a patch? :)
from gh-badges.
The current Travis URL is: http://b.adge.me/travis/<USER/REPO>.svg
.
@jmalloc Tell me what you'd find nice. http://b.adge.me/travis/<USER/REPO/BRANCH>.svg
, maybe?
from gh-badges.
For reference the Coveralls URL is much the same:
https://coveralls.io/repos/recoilphp/recoil/badge.png?branch=develop
I'll give a patch a go, sure :)
@espadrine I like your example yes! As a personal preference I like including the branch in the path rather than the query parameters.
from gh-badges.
@jmalloc If you want to give it a go, I advise you to change line 11 in server.js
so that what we take takes slashes into account, ie, ([^/]+)
instead of (.*)
in the regexp.
from gh-badges.
Branch names can contain slashes though. Implementing it as a query parameter here, too, might not be a bad idea.
from gh-badges.
@Krinkle I was thinking more like ([^/]+)/([^/]+)/(.+)
, as in, no slash in the name and repo, but you can have a slash in the branch name.
from gh-badges.
Done with #25.
from gh-badges.
Related Issues (20)
- Build a web service HOT 7
- Picking the font HOT 10
- Work with existing services HOT 27
- Tracking Gemnasium’s adoption of these badges HOT 7
- Add build script that generates SVG badges based on template HOT 5
- Making PNG download faster HOT 6
- Add no-cache headers so that github will not cache the svg in their CND
- Mention Github Badge Gem HOT 1
- Not rendering in Github HOT 8
- Following color, rounding and font "standard" from other providers. HOT 2
- redirect / to http://shields.io/ HOT 35
- Tracking Travis’ adoption of these badges
- Add support for Version Badge HOT 9
- Bad image link in README.md HOT 2
- Tracking David DM’s adoption of these badges
- Running from Docker HOT 3
- Installation in Node.js v5.8.0 - Compilation error HOT 2
- Tracking browser bugs HOT 9
- Align color scheme names with Buckler’s HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-badges.