Skip to content

Commit

Permalink
Merge pull request #11 from gsmet/iterate-after-pause
Browse files Browse the repository at this point in the history
Increment ordinal after continue
  • Loading branch information
gsmet authored Nov 24, 2023
2 parents cdcbd99 + e769084 commit e1744a2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/main/java/io/quarkus/bot/release/ReleaseAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ private void handleSteps(Context context, Commands commands, GHIssue issue, Upda
if (stepHandler.shouldContinue(releaseInformation, currentReleaseStatus, issueComment)) {
react(commands, issueComment, ReactionContent.PLUS_ONE);
currentReleaseStatus = currentReleaseStatus.progress(StepStatus.COMPLETED);
updateReleaseStatus(issue, updatedIssueBody, currentReleaseStatus);
initialStepOrdinal++;
} else {
react(commands, issueComment, ReactionContent.CONFUSED);
return;
Expand Down Expand Up @@ -311,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 e1744a2

Please sign in to comment.