Procházet zdrojové kódy

Fix mentions elided for the author.

Eric Huss před 2 roky
rodič
revize
8dbc9cdc3e
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/handlers/mentions.rs

+ 3 - 1
src/handlers/mentions.rs

@@ -61,7 +61,9 @@ pub(super) async fn parse_input(
             .filter(|(path, MentionsPathConfig { cc, .. })| {
                 let path = Path::new(path);
                 file_paths.iter().any(|p| p.starts_with(path))
-                    && !cc.iter().any(|r| r == &event.issue.user.login)
+                    && !cc
+                        .iter()
+                        .any(|r| r.trim_start_matches('@') == &event.issue.user.login)
             })
             .map(|(key, _mention)| key.to_string())
             .collect();