Skip to content

Commit 5da1075

Browse files
authored
Merge pull request #1630 from ehuss/mentions-author-at
Fix mentions elided for the author.
2 parents 021d849 + 8dbc9cd commit 5da1075

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)