Drone build badge in 1.0.0rc5

I can’t get the drone build badge to show branches. Always seems to show the latest or running branch.

In 0.5 I did this:

/api/badges///status.svg?branch=2.3

but that doesn’t seem to work in 1.0 RC5.

I also tried the:

/api/badges///status.svg?ref=/refs/heads/2.3

I saw in the configuration console. That however just gives me a build none badge for everything

looks like it is prefixed with a slash that should not be there:

-ref=/refs/heads/2.3
+ref=refs/heads/2.3

I verified that removing the begenning slash works.

?branch=refs/pulls/28/head works for SVG ref, but
is there a link to latest build for that ref, to go with the SVG ?

Thanks. I think that did the trick

This bug is still present in 1.1.0.
Should we create an issue for that?

This was fixed in head, and will be available when we tag a 1.2 release

1 Like