Skip to content

Commit 9e04ab7

Browse files
committed
Remove special case from command assign handler
It should be handled in `find_reviewer_names` instead
1 parent 88466d2 commit 9e04ab7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/handlers/assign.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -520,19 +520,6 @@ pub(super) async fn handle_command(
520520
}
521521
};
522522

523-
// Allow users on vacation to assign themselves to a PR, but not anyone else.
524-
if config.is_on_vacation(&assignee) && !is_self_assign(&assignee, &event.user().login) {
525-
// This is a comment, so there must already be a reviewer assigned. No need to assign anyone else.
526-
issue
527-
.post_comment(&ctx.github, &on_vacation_warning(&assignee))
528-
.await?;
529-
return Ok(());
530-
}
531-
// Do not assign PR author
532-
if issue.user.login.to_lowercase() == assignee.to_lowercase() {
533-
return Ok(());
534-
}
535-
536523
set_assignee(issue, &ctx.github, &assignee).await;
537524
} else {
538525
let e = EditIssueBody::new(&issue, "ASSIGN");

0 commit comments

Comments
 (0)