Skip to content

Commit ed7aaf7

Browse files
Merge pull request #2535 from Kobzol/comment-ignore-fix
Read bors try build completed comments
2 parents efed01b + 2a94e75 commit ed7aaf7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

site/src/request_handlers/github.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ async fn handle_issue(
7070
comment: github::Comment,
7171
) -> ServerResult<github::Response> {
7272
// Do not react to our own comments, to avoid funny loops :)
73-
// Also avoid reacting to the bors GitHub App
74-
// https://api.github.com/users/rust-bors[bot]
75-
if comment.user.login == "rust-timer" || comment.user.id == 122020455 {
73+
if comment.user.login == "rust-timer" {
7674
return Ok(github::Response);
7775
}
7876

@@ -95,7 +93,9 @@ async fn handle_issue(
9593
}
9694
}
9795

98-
if comment.body.contains(RUST_TIMER_PREFIX) {
96+
// Do not react to @rust-timer commands sent by the bors GitHub App
97+
// https://api.github.com/users/rust-bors[bot]
98+
if comment.body.contains(RUST_TIMER_PREFIX) && comment.user.id != 122020455 {
9999
return handle_rust_timer(ctxt, &gh_client, comment, issue).await;
100100
}
101101

0 commit comments

Comments
 (0)