We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
r? ghost
1 parent ded85ba commit 29cb0a0Copy full SHA for 29cb0a0
src/handlers/assign.rs
@@ -476,6 +476,15 @@ pub(super) async fn handle_command(
476
}
477
};
478
479
+ // In the PR body, `r? ghost` means "do not assign anybody".
480
+ // When you send `r? ghost` in a PR comment, it should mean "unassign the current assignee".
481
+ // Only allow this for the PR author (usually when they forget to do `r? ghost` in the PR
482
+ // body), otherwise anyone could remove assignees from any PR.
483
+ if assignee == GHOST_ACCOUNT && issue.user.login == event.user().login {
484
+ issue.remove_assignees(&ctx.github, Selection::All).await?;
485
+ return Ok(());
486
+ }
487
+
488
let db_client = ctx.db.get().await;
489
let assignee = match find_reviewer_from_names(
490
&db_client,
0 commit comments