Skip to content

Commit c156fe9

Browse files
committed
don't try to reassign a reviewer when a pr title is edited
doing so leads to weird errors: > Could not assign reviewer from: jyn514. > User(s) jyn514 are either the PR author, already assigned, or on vacation, and there are no other candidates. > Use r? to specify someone else to assign. this was likely missed when transitioning from highfive to triagebot. `handle_command` is run *both* when the PR is opened and when it is edited (see the `command_handlers` macro). but in both those cases `handle_input` will also run. don't override its decisions. (`handle_input` already handles edits correctly, by not setting an assignee if one already exists.)
1 parent 92c3399 commit c156fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/assign.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ pub(super) async fn handle_command(
478478
if matches!(
479479
event,
480480
Event::Issue(IssuesEvent {
481-
action: IssuesAction::Opened,
481+
action: IssuesAction::Opened | IssuesAction::Edited,
482482
..
483483
})
484484
) {

0 commit comments

Comments
 (0)