diff options
author | Christopher Baines <mail@cbaines.net> | 2023-10-12 11:19:26 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-10-12 11:19:26 +0100 |
commit | 632b0545b290c7f8b5f5c8f91f8ad8c5947df6bd (patch) | |
tree | df7d309ded63dc41597fbac6562e3779b8c02185 /guix-qa-frontpage | |
parent | 2d3c5d497d36c26416beea3245f47c7c607b9558 (diff) | |
download | qa-frontpage-632b0545b290c7f8b5f5c8f91f8ad8c5947df6bd.tar qa-frontpage-632b0545b290c7f8b5f5c8f91f8ad8c5947df6bd.tar.gz |
Include more statuses in the badges
Diffstat (limited to 'guix-qa-frontpage')
-rw-r--r-- | guix-qa-frontpage/server.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/guix-qa-frontpage/server.scm b/guix-qa-frontpage/server.scm index 1514d7b..4a45720 100644 --- a/guix-qa-frontpage/server.scm +++ b/guix-qa-frontpage/server.scm @@ -317,6 +317,8 @@ '((reviewed-looks-good . "darkgreen") (important-checks-passing . "green") (important-checks-failing . "red") + (failed-to-apply-patches . "darkred") + (guix-data-service-failed . "yellow") (needs-looking-at . "orange") (unknown . "grey")) overall-status) @@ -391,6 +393,48 @@ <text x=\"90\" y=\"22\" fill=\"#000\">Succeeding</text> </g> </svg>") + ((eq? overall-status 'failed-to-apply-patches) + " +<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"272\" height=\"36\"> + <clipPath id=\"clip\"> + <rect width=\"140\" height=\"36\" rx=\"4\"/> + </clipPath> + <linearGradient id=\"job\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\"> + <stop offset=\"0\" stop-color=\"#666\" /> + <stop offset=\"1\" stop-color=\"#333\" /> + </linearGradient> + <linearGradient id=\"status\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\"> + <stop offset=\"0\" stop-color=\"red\" /> + <stop offset=\"1\" stop-color=\"red\" /> + </linearGradient> + <g clip-path=\"url(#clip)\" font-family=\"DejaVu Sans,Verdana,sans-serif\" font-size=\"14\" text-anchor=\"middle\"> + <rect width=\"40\" height=\"36\" fill=\"url(#job)\"/> + <text x=\"20\" y=\"22\" fill=\"#fff\">QA</text> + <rect x=\"40\" width=\"100\" height=\"36\" fill=\"url(#status)\"/> + <text x=\"90\" y=\"22\" fill=\"#000\">Investigate</text> + </g> +</svg>") + ((eq? overall-status 'guix-data-service-failed) + " +<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"272\" height=\"36\"> + <clipPath id=\"clip\"> + <rect width=\"140\" height=\"36\" rx=\"4\"/> + </clipPath> + <linearGradient id=\"job\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\"> + <stop offset=\"0\" stop-color=\"#666\" /> + <stop offset=\"1\" stop-color=\"#333\" /> + </linearGradient> + <linearGradient id=\"status\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\"> + <stop offset=\"0\" stop-color=\"yellow\" /> + <stop offset=\"1\" stop-color=\"yellow\" /> + </linearGradient> + <g clip-path=\"url(#clip)\" font-family=\"DejaVu Sans,Verdana,sans-serif\" font-size=\"14\" text-anchor=\"middle\"> + <rect width=\"40\" height=\"36\" fill=\"url(#job)\"/> + <text x=\"20\" y=\"22\" fill=\"#fff\">QA</text> + <rect x=\"40\" width=\"100\" height=\"36\" fill=\"url(#status)\"/> + <text x=\"90\" y=\"22\" fill=\"#000\">Investigate</text> + </g> +</svg>") ((eq? overall-status 'needs-looking-at) " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"272\" height=\"36\"> |