@@ -47,16 +47,16 @@ minimum review times lag, PR authors and assigned reviewers should ensure that t
47
47
label (`S-waiting-on-review` and `S-waiting-on-author`) stays updated, invoking these commands \
48
48
when appropriate:
49
49
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" ;
52
52
53
53
const WELCOME_WITH_REVIEWER : & str = "@{assignee} (or someone else)" ;
54
54
55
55
const WELCOME_WITHOUT_REVIEWER : & str = "@Mark-Simulacrum (NB. this repo may be misconfigured)" ;
56
56
57
57
const RETURNING_USER_WELCOME_MESSAGE : & str = "r? @{assignee}
58
58
59
- (rustbot has picked a reviewer for you, use r? to override)" ;
59
+ ({bot} has picked a reviewer for you, use r? to override)" ;
60
60
61
61
const RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER : & str =
62
62
"@{author}: no appropriate reviewer found, use r? to override" ;
@@ -141,12 +141,18 @@ pub(super) async fn handle_input(
141
141
let mut welcome = NEW_USER_WELCOME_MESSAGE . replace ( "{who}" , & who_text) ;
142
142
if let Some ( contrib) = & config. contributing_url {
143
143
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
+ ) ;
145
149
}
146
150
Some ( welcome)
147
151
} else if !from_comment {
148
152
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 ) ,
150
156
None => RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER
151
157
. replace ( "{author}" , & event. issue . user . login ) ,
152
158
} ;
0 commit comments