Преглед изворни кода

Merge pull request #1641 from aDotInTheVoid/mention-multi

mentions: Only supress mention when just the author is to be CC'd.
Mark Rousskov пре 2 година
родитељ
комит
7594315931
1 измењених фајлова са 2 додато и 2 уклоњено
  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();