Skip to content

Commit

Permalink
Merge pull request #222 from gsmet/check-draft
Browse files Browse the repository at this point in the history
Also check for drafts at the end
  • Loading branch information
gsmet authored Sep 6, 2024
2 parents 893129a + 227b691 commit b3082a5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ private void handleCompleted(GHWorkflow workflow,

String reportComment = reportCommentOptional.get();

if (pullRequest.isDraft()) {
// if pull request has been marked draft while analyzing the report, let's not add the comment
return;
}

if (!buildReporterConfig.isDryRun()) {
pullRequest.comment(reportComment);
} else {
Expand Down

0 comments on commit b3082a5

Please sign in to comment.