shields icon indicating copy to clipboard operation
shields copied to clipboard

Can't make Travis-CI build status badge to indicate specified branch?

Open librae8226 opened this issue 8 years ago • 6 comments

expected: https://travis-ci.org/alibaba/AliOS-Things.svg?branch=master

however, shields does not work like above: https://img.shields.io/travis/alibaba/AliOS-Things.svg?branch=master

It seems the parameter branch=master doesn't make any difference on img.shields.io.

Apologize, the master is now build-passing, as well as all other branches, so we may not see the actual result, but I guess the question is clear.

librae8226 avatar Feb 01 '18 04:02 librae8226

I believe the correct format for specifying a branch is: https://img.shields.io/travis/USER/REPO/BRANCH.svg

So in your case the url would be: https://img.shields.io/travis/alibaba/AliOS-Things/master.svg

Hope that helps :smile:

RedSparr0w avatar Feb 01 '18 04:02 RedSparr0w

quite helpful, thanks a lot @RedSparr0w

librae8226 avatar Feb 01 '18 05:02 librae8226

@RedSparr0w the format you suggested is only supported for projects at travis-ci.org, not at travis-ci.com, isn't it?

eine avatar Jun 12 '18 12:06 eine

@1138-4EB Check this merged PR, should works now: https://github.com/badges/shields/pull/1711

Use: /travis/com/USER/REPO.(svg|png|gif|jpg|json) /travis-ci/com/USER/REPO.(svg|png|gif|jpg|json)

bertrandg avatar Dec 05 '18 10:12 bertrandg

What's missing. Could you clarify?

screen shot 2018-12-05 at 11 58 46 pm

paulmelnikow avatar Dec 06 '18 05:12 paulmelnikow

@paulmelnikow My bad, I didn't realise there was a Travis.org and a Travis.com

JulienDemarque avatar Dec 06 '18 09:12 JulienDemarque