Skip to content

Commit

Permalink
Add some notices
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 25, 2023
1 parent 1491b2c commit 05d2b1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class GetReleaseStatusAction {

@Action("get-release-status")
void getReleaseStatus(Commands commands, @IssueComment.Created GHEventPayload.IssueComment issueCommentPayload) {
commands.notice("Extracting release status information...");

UpdatedIssueBody updatedIssueBody = new UpdatedIssueBody(issueCommentPayload.getIssue().getBody());

ReleaseStatus releaseStatus = issues.extractReleaseStatus(updatedIssueBody);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ void postInteractionComment(Commands commands, Inputs inputs,
}

private void postInteractionComment(Commands commands, Inputs inputs, GHIssue issue) throws IOException {
commands.notice("Posting interaction comment");

Optional<String> interactionCommentInput = inputs.get(Outputs.INTERACTION_COMMENT);
if (interactionCommentInput.isEmpty() || interactionCommentInput.get().isBlank()) {
commands.warning("No " + Outputs.INTERACTION_COMMENT + " input, not posting interaction comment");
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/quarkus/bot/release/ReleaseAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public class ReleaseAction {

@Action
void startRelease(Context context, Commands commands, @Issue.Opened GHEventPayload.Issue issuePayload) throws Exception {
commands.notice("Starting release...");

GHIssue issue = issuePayload.getIssue();
UpdatedIssueBody updatedIssueBody = new UpdatedIssueBody(issue.getBody());

Expand Down Expand Up @@ -88,6 +90,8 @@ void startRelease(Context context, Commands commands, @Issue.Opened GHEventPaylo
@Action
void onComment(Context context, Commands commands, @IssueComment.Created GHEventPayload.IssueComment issueCommentPayload)
throws Exception {
commands.notice("Continuing release...");

GHIssueComment issueComment = issueCommentPayload.getComment();
GHIssue issue = issueCommentPayload.getIssue();
UpdatedIssueBody updatedIssueBody = new UpdatedIssueBody(issue.getBody());
Expand Down

0 comments on commit 05d2b1f

Please sign in to comment.