Explorar o código

Merge pull request #1641 from aDotInTheVoid/mention-multi

mentions: Only supress mention when just the author is to be CC'd.
Mark Rousskov %!s(int64=2) %!d(string=hai) anos
pai
achega
7594315931
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/handlers/mentions.rs

+ 2 - 2
src/handlers/mentions.rs

@@ -62,13 +62,13 @@ pub(super) async fn parse_input(
             .paths
             .iter()
             // Only mention matching paths.
-            // Don't mention if the author is in the list.
+            // Don't mention if only the author is in the list.
             .filter(|(path, MentionsPathConfig { cc, .. })| {
                 let path = Path::new(path);
                 file_paths.iter().any(|p| p.starts_with(path))
                     && !cc
                         .iter()
-                        .any(|r| r.trim_start_matches('@') == &event.issue.user.login)
+                        .all(|r| r.trim_start_matches('@') == &event.issue.user.login)
             })
             .map(|(key, _mention)| key.to_string())
             .collect();