Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/handlers/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ async fn determine_assignee(
&teams,
config,
&event.issue,
&event.issue.user.login,
&[name],
)
.await
Expand All @@ -420,6 +421,7 @@ async fn determine_assignee(
&teams,
config,
&event.issue,
&event.issue.user.login,
&candidates,
)
.await
Expand Down Expand Up @@ -461,6 +463,7 @@ async fn determine_assignee(
&teams,
config,
&event.issue,
&event.issue.user.login,
fallback,
)
.await
Expand Down Expand Up @@ -645,6 +648,7 @@ pub(super) async fn handle_command(
&teams,
config,
issue,
&event.user().login,
&[assignee.to_string()],
)
.await
Expand Down Expand Up @@ -871,11 +875,12 @@ async fn find_reviewer_from_names(
teams: &Teams,
config: &AssignConfig,
issue: &Issue,
requested_by: &str,
names: &[String],
) -> Result<ReviewerSelection, FindReviewerError> {
// Fast path for self-assign, which is always allowed.
if let [name] = names {
if is_self_assign(&name, &issue.user.login) {
if is_self_assign(&name, requested_by) {
return Ok(ReviewerSelection::from_name(name.clone()));
}
}
Expand Down
Loading