Skip to content

Commit 8dbc9cd

Browse files
committed
Fix mentions elided for the author.
1 parent 021d849 commit 8dbc9cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/handlers/mentions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ pub(super) async fn parse_input(
6161
.filter(|(path, MentionsPathConfig { cc, .. })| {
6262
let path = Path::new(path);
6363
file_paths.iter().any(|p| p.starts_with(path))
64-
&& !cc.iter().any(|r| r == &event.issue.user.login)
64+
&& !cc
65+
.iter()
66+
.any(|r| r.trim_start_matches('@') == &event.issue.user.login)
6567
})
6668
.map(|(key, _mention)| key.to_string())
6769
.collect();

0 commit comments

Comments
 (0)