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

Created on 1 Feb 2018  路  6Comments  路  Source: badges/shields

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.

question

Most helpful comment

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:

All 6 comments

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:

quite helpful, thanks a lot @RedSparr0w

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

@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)

What's missing. Could you clarify?

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

najeeb-ur-rehman picture najeeb-ur-rehman  路  3Comments

korenyoni picture korenyoni  路  3Comments

calebcartwright picture calebcartwright  路  3Comments

techtonik picture techtonik  路  3Comments

calebcartwright picture calebcartwright  路  3Comments