Explorar o código

Merge pull request #1631 from ehuss/mentions-rollup

Don't post mentions on rollups.
Mark Rousskov %!s(int64=2) %!d(string=hai) anos
pai
achega
13ece7c760
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/handlers/mentions.rs

+ 5 - 0
src/handlers/mentions.rs

@@ -42,6 +42,11 @@ pub(super) async fn parse_input(
         return Ok(None);
     }
 
+    // Don't ping on rollups.
+    if event.issue.title.starts_with("Rollup of") {
+        return Ok(None);
+    }
+
     if let Some(diff) = event
         .issue
         .diff(&ctx.github)