Skip to content

Commit c79fd0e

Browse files
Merge pull request #1492 from rust-lang/gh-comment-empty
Do not send empty queued comments on PRs
2 parents bff7ad6 + 7c2d511 commit c79fd0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

site/src/github.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,12 @@ pub async fn enqueue_shas(
243243
));
244244
}
245245
}
246-
msg.push_str(&format!("\n{COMMENT_MARK_TEMPORARY}"));
247-
main_client.post_comment(pr_number, msg).await;
246+
247+
if !msg.is_empty() {
248+
msg.push_str(&format!("\n{COMMENT_MARK_TEMPORARY}"));
249+
main_client.post_comment(pr_number, msg).await;
250+
}
251+
248252
Ok(())
249253
}
250254

0 commit comments

Comments
 (0)