diff --git a/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/BuildReporterEventHandler.java b/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/BuildReporterEventHandler.java index b0ddf7f..bef0d99 100644 --- a/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/BuildReporterEventHandler.java +++ b/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/BuildReporterEventHandler.java @@ -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 {