Bukama commented on code in PR #194:
URL: https://github.com/apache/maven-dist-tool/pull/194#discussion_r3608880034
##########
src/main/java/org/apache/maven/dist/tools/jobs/master/ListMasterJobsReport.java:
##########
@@ -224,4 +224,58 @@ private ZonedDateTime getLastBuild(String lastSuccess,
String lastFailure) {
return failure;
}
}
+
+ private String getLocalBadge(String status) {
+ return switch (status) {
+ case "FAILURE" -> prepareBadge("failure", "#dd4343");
+ case "SUCCESS" -> prepareBadge("passing", "#4b0");
+ case "UNKNOWN" -> prepareBadge("unknown", "#57606a");
+ case "UNSTABLE" -> prepareBadge("unstable", "#ffff00");
+ default -> prepareBadge("unknown", "#57606a");
+ };
+ }
+
+ private String prepareBadge(String buildStatus, String color) {
+ // Replace with text-block, when maven-plugin-plugin supports needed
Java version
Review Comment:
We already use 21. Took me a while that the compilation error is not due
java version, but something needed to be escaped.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]