Skip to content

Commit

Permalink
Also check for drafts at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Sep 6, 2024
1 parent 893129a commit 227b691
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 227b691

Please sign in to comment.