Skip to content

Commit 95bab68

Browse files
committed
mentions: Only supress mention when just the author is to be CC'd.
See https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Triagebot.20mentions.20not.20working.20for.20rustdoc-json for more detail.
1 parent c606c06 commit 95bab68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/mentions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ pub(super) async fn parse_input(
6262
.paths
6363
.iter()
6464
// Only mention matching paths.
65-
// Don't mention if the author is in the list.
65+
// Don't mention if only the author is in the list.
6666
.filter(|(path, MentionsPathConfig { cc, .. })| {
6767
let path = Path::new(path);
6868
file_paths.iter().any(|p| p.starts_with(path))
6969
&& !cc
7070
.iter()
71-
.any(|r| r.trim_start_matches('@') == &event.issue.user.login)
71+
.all(|r| r.trim_start_matches('@') == &event.issue.user.login)
7272
})
7373
.map(|(key, _mention)| key.to_string())
7474
.collect();

0 commit comments

Comments
 (0)