Skip to content

Commit

Permalink
Improve You are here a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 24, 2023
1 parent cf119d8 commit e769084
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/java/io/quarkus/bot/release/ReleaseAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,18 @@ private static String youAreHere(ReleaseInformation releaseInformation, ReleaseS
sb.append("] ").append(s.getDescription());

if (releaseStatus.getCurrentStep() == s) {
if (releaseStatus.getCurrentStepStatus() == StepStatus.STARTED) {
sb.append(" :gear:");
}
if (releaseStatus.getCurrentStepStatus() == StepStatus.FAILED) {
sb.append(" :rotating_light:");
switch (releaseStatus.getCurrentStepStatus()) {
case STARTED:
sb.append(" :gear:");
break;
case FAILED:
sb.append(" :rotating_light:");
break;
case PAUSED:
sb.append(" :pause_button:");
break;
default:
break;
}
sb.append(" ☚ You are here");
}
Expand Down

0 comments on commit e769084

Please sign in to comment.