Skip to content

Commit

Permalink
Merge pull request #1888 from apiraino/add-bypass-for-ghost
Browse files Browse the repository at this point in the history
Add bypass for user ghost
  • Loading branch information
jackh726 authored Jan 23, 2025
2 parents ac05e4a + d81d9fe commit d11d555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/handlers/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,11 @@ async fn find_reviewer_from_names(
// These are all ideas for improving the selection here. However, I'm not
// sure they are really worth the effort.

// Special case user "ghost", we always skip filtering
if candidates.contains("ghost") {
return Ok("ghost".to_string());
}

// filter out team members without capacity
let filtered_candidates = filter_by_capacity(db, &candidates)
.await
Expand Down

0 comments on commit d11d555

Please sign in to comment.