Skip to content

Set [build] passed/failed background color #9195

Answered by calebcartwright
Mqxx asked this question in Q&A
Discussion options

You must be logged in to vote

i'll also add that our default badges apply such coloring by default (red for failed, bright green for passing, etc.), but as Chris correctly notes we don't allow end users to control this. if you want something different than our default coloring logic, then your best bet would be to utilize our Custom Endpoint badge. Your endpoint could still use Shields for the status fetching (request the same badge url, but with a .json extension), and then apply whatever logic you want internally to set the color in your endpoint response

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mqxx
Comment options

@calebcartwright
Comment options

Answer selected by Mqxx
@Mqxx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants