From 179adf73ca00620c1a49489f83f15e74d9b7b105 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 3 Jan 2024 16:25:24 +0100 Subject: [PATCH] Add job summary for InjectBuildScansAction --- .../java/io/quarkus/bot/develocity/InjectBuildScansAction.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/io/quarkus/bot/develocity/InjectBuildScansAction.java b/src/main/java/io/quarkus/bot/develocity/InjectBuildScansAction.java index 1185f4b..b2b513a 100644 --- a/src/main/java/io/quarkus/bot/develocity/InjectBuildScansAction.java +++ b/src/main/java/io/quarkus/bot/develocity/InjectBuildScansAction.java @@ -125,6 +125,9 @@ private void updateComment(Commands commands, GHPullRequest pullRequest, GHWorkf if (buildScansCheckRun.isPresent()) { updatedCommentBody = updatedCommentBody.replace(BUILD_SCANS_CHECK_RUN_MARKER, "You can also consult the [Develocity build scans](" + buildScansCheckRun.get().getHtmlUrl() + ")."); + + commands.appendJobSummary("Develocity build scans have been published for pull request #" + pullRequest.getNumber() + "\n\n" + + "Check run: " + buildScansCheckRun.get().getHtmlUrl()); } if (!updatedCommentBody.equals(reportComment.getBody())) {