@@ -58,10 +58,10 @@ pub(super) async fn parse_input(
58
58
. iter ( )
59
59
// Only mention matching paths.
60
60
// Don't mention if the author is in the list.
61
- . filter ( |( path, MentionsPathConfig { reviewers , .. } ) | {
61
+ . filter ( |( path, MentionsPathConfig { cc , .. } ) | {
62
62
let path = Path :: new ( path) ;
63
63
file_paths. iter ( ) . any ( |p| p. starts_with ( path) )
64
- && !reviewers . iter ( ) . any ( |r| r == & event. issue . user . login )
64
+ && !cc . iter ( ) . any ( |r| r == & event. issue . user . login )
65
65
} )
66
66
. map ( |( key, _mention) | key. to_string ( ) )
67
67
. collect ( ) ;
@@ -88,16 +88,16 @@ pub(super) async fn handle_input(
88
88
// Avoid duplicate mentions.
89
89
continue ;
90
90
}
91
- let MentionsPathConfig { message, reviewers } = & config. paths [ to_mention] ;
91
+ let MentionsPathConfig { message, cc } = & config. paths [ to_mention] ;
92
92
if !result. is_empty ( ) {
93
93
result. push_str ( "\n \n " ) ;
94
94
}
95
95
match message {
96
96
Some ( m) => result. push_str ( m) ,
97
97
None => write ! ( result, "Some changes occurred in {to_mention}" ) . unwrap ( ) ,
98
98
}
99
- if !reviewers . is_empty ( ) {
100
- write ! ( result, "\n \n cc {}" , reviewers . join( ", " ) ) . unwrap ( ) ;
99
+ if !cc . is_empty ( ) {
100
+ write ! ( result, "\n \n cc {}" , cc . join( ", " ) ) . unwrap ( ) ;
101
101
}
102
102
state. data . paths . push ( to_mention. to_string ( ) ) ;
103
103
}
0 commit comments