@@ -211,14 +211,25 @@ pub(super) async fn handle_input(
211
211
}
212
212
Some ( welcome)
213
213
} else if !from_comment {
214
- let welcome = match & assignee {
215
- Some ( assignee) => RETURNING_USER_WELCOME_MESSAGE
216
- . replace ( "{assignee}" , & assignee. name )
217
- . replace ( "{bot}" , & ctx. username ) ,
218
- None => RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER
219
- . replace ( "{author}" , & event. issue . user . login ) ,
220
- } ;
221
- Some ( welcome)
214
+ match & assignee {
215
+ Some ( assignee) => Some (
216
+ RETURNING_USER_WELCOME_MESSAGE
217
+ . replace ( "{assignee}" , & assignee. name )
218
+ . replace ( "{bot}" , & ctx. username ) ,
219
+ ) ,
220
+ None => {
221
+ // If the assign fallback group is empty, then we don't expect any automatic
222
+ // assignment, and this message would just be spam.
223
+ if config. fallback_review_group ( ) . is_some ( ) {
224
+ Some (
225
+ RETURNING_USER_WELCOME_MESSAGE_NO_REVIEWER
226
+ . replace ( "{author}" , & event. issue . user . login ) ,
227
+ )
228
+ } else {
229
+ None
230
+ }
231
+ }
232
+ }
222
233
} else {
223
234
// No welcome is posted if they are not new and they used `r?` in the opening body.
224
235
None
@@ -412,7 +423,7 @@ async fn determine_assignee(
412
423
}
413
424
}
414
425
415
- if let Some ( fallback) = config. adhoc_groups . get ( "fallback" ) {
426
+ if let Some ( fallback) = config. fallback_review_group ( ) {
416
427
match find_reviewer_from_names (
417
428
& mut db_client,
418
429
ctx. workqueue . clone ( ) ,
0 commit comments