badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.81k stars 5.51k forks source link

No link to Travis.org build in generated branch URL #3928

Open techtonik opened 5 years ago

techtonik commented 5 years ago

Are you experiencing an issue with...

:beetle: Description

There is no URL generated to Travis.org branch badge. This is the produced markdown:

![Travis (.org) branch](https://img.shields.io/travis/techtonik/python-patch/master)

For the following screenshot: image

:bulb: Possible Solution

Travis (.org) branch

Generate link URL for the branch. But it seems Travis.org doesn't support linking directly to branch builds, so a link to https://travis-ci.org/techtonik/python-patch/branches should be enough.

techtonik commented 5 years ago

The same problem with absent URL with PyPI shield.

paulmelnikow commented 5 years ago

Hi @techtonik, thanks for the suggestion. I agree this is a nice idea. None of the badges provide what you're asking for and I agree it would be a nice idea to do this. A few do ship SVG that in certain circumstances will include a link and probably we'd want to create some new logic that can be invoked from the frontend.

This is related to your request in #2420 which calls for the inverse mapping: generating a badge URL from a repo URL.

Adding this would definitely be a good sized project!

AlexWayfer commented 4 years ago

I didn't find this issue and I've created #4726.

I suggest to change this issue title and description from Travis to more common, because it's related to other services like Cirrus CI, Circle CI, etc.