@@ -47,16 +47,16 @@ minimum review times lag, PR authors and assigned reviewers should ensure that t
4747 label (`S-waiting-on-review` and `S-waiting-on-author`) stays updated, invoking these commands \
4848 when appropriate:
4949
50- - `@rustbot author`: the review is finished, PR author should check the comments and take action accordingly
51- - `@rustbot review`: the author is ready for a review, this PR will be queued again in the reviewer's queue" ;
50+ - `@{bot} author`: the review is finished, PR author should check the comments and take action accordingly
51+ - `@{bot} review`: the author is ready for a review, this PR will be queued again in the reviewer's queue" ;
5252
5353const WELCOME_WITH_REVIEWER : & str = "@{assignee} (or someone else)" ;
5454
5555const WELCOME_WITHOUT_REVIEWER : & str = "@Mark-Simulacrum (NB. this repo may be misconfigured)" ;
5656
5757const RETURNING_USER_WELCOME_MESSAGE : & str = "r? @{assignee}
5858
59- (rustbot has picked a reviewer for you, use r? to override)" ;
59+ ({bot} has picked a reviewer for you, use r? to override)" ;
6060
6161const RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER : & str =
6262 "@{author}: no appropriate reviewer found, use r? to override" ;
@@ -141,12 +141,18 @@ pub(super) async fn handle_input(
141141 let mut welcome = NEW_USER_WELCOME_MESSAGE . replace ( "{who}" , & who_text) ;
142142 if let Some ( contrib) = & config. contributing_url {
143143 welcome. push_str ( "\n \n " ) ;
144- welcome. push_str ( & CONTRIBUTION_MESSAGE . replace ( "{contributing_url}" , contrib) ) ;
144+ welcome. push_str (
145+ & CONTRIBUTION_MESSAGE
146+ . replace ( "{contributing_url}" , contrib)
147+ . replace ( "{bot}" , & ctx. username ) ,
148+ ) ;
145149 }
146150 Some ( welcome)
147151 } else if !from_comment {
148152 let welcome = match & assignee {
149- Some ( assignee) => RETURNING_USER_WELCOME_MESSAGE . replace ( "{assignee}" , assignee) ,
153+ Some ( assignee) => RETURNING_USER_WELCOME_MESSAGE
154+ . replace ( "{assignee}" , assignee)
155+ . replace ( "{bot}" , & ctx. username ) ,
150156 None => RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER
151157 . replace ( "{author}" , & event. issue . user . login ) ,
152158 } ;
0 commit comments