Cirrus-ci-docs: Proper badge support with shields.io

Created on 6 May 2019  路  12Comments  路  Source: cirruslabs/cirrus-ci-docs

I am hitting GitHub caches issue described in #223. https://api.cirrus-ci.com/github/yakshaveinc/linux.svg shows as passing, but repository status is "not found"

The solution is to add first hand support to https://shields.io which may better work around GitHub caching requests https://github.com/badges/shields/blob/master/doc/TUTORIAL.md

feature high-priority

Most helpful comment

Okay going to take a look at this now

All 12 comments

Related:

279

223

I can create the badges on shields's end if you are able to add an API URL that responds with passing, failing, or notFound.

There is now a JSON endpoint to get the badge information. Simply change .svg to .json. For example, https://api.cirrus-ci.com/github/yakshaveinc/linux.json

@RDIL do you still have bandwidth to take a loot at submitting a PR to https://github.com/badges/shields to add the support?

Yeah, taking the weekend off though. I鈥檒l look into it on Monday.

Thank you!

Okay going to take a look at this now

Okay, PR is open, feel free to help out :)

I'm experiencing the same issue but both the svg and json links are returning not+found: badge

https://api.cirrus-ci.com/github/awnumar/memguard.svg
https://api.cirrus-ci.com/github/awnumar/memguard.json

So I'm not sure if the proposed shields.io solution would work since it pulls from the json endpoint.

@awnumar there are no master builds for the repository. You can specify branch via ?branch=cirrus query like this: https://api.cirrus-ci.com/github/awnumar/memguard.svg?branch=cirrus

@fkorotkov Heyy nice one thanks!

@RDIL do you still have time to follow up on https://github.com/badges/shields/pull/3502? Or should I take over?

Honestly, I really have to get something done before Tuesday, so I can't really right now. If you comment suggestions, I'll accept them though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

awnumar picture awnumar  路  5Comments

MarcoFalke picture MarcoFalke  路  3Comments

dotdoom picture dotdoom  路  5Comments

fkorotkov picture fkorotkov  路  5Comments

iskakaushik picture iskakaushik  路  5Comments