Set [build] passed/failed background color #9195
-
Hey is it possible to set the background color of a build badge based on if the build has passed (green) or if it has failed (orange/red)? |
Beta Was this translation helpful? Give feedback.
Answered by
calebcartwright
May 23, 2023
Replies: 1 comment 3 replies
-
No. That is not an available customisation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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