Skip to content

Commit

Permalink
Merge pull request #40 from gsmet/add-summary
Browse files Browse the repository at this point in the history
Add job summary for InjectBuildScansAction
  • Loading branch information
gsmet authored Jan 3, 2024
2 parents 50ba299 + 179adf7 commit aee32e0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit aee32e0

Please sign in to comment.