Skip to content

Commit d11d555

Browse files
authored
Merge pull request #1888 from apiraino/add-bypass-for-ghost
Add bypass for user ghost
2 parents ac05e4a + d81d9fe commit d11d555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/handlers/assign.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,11 @@ async fn find_reviewer_from_names(
781781
// These are all ideas for improving the selection here. However, I'm not
782782
// sure they are really worth the effort.
783783

784+
// Special case user "ghost", we always skip filtering
785+
if candidates.contains("ghost") {
786+
return Ok("ghost".to_string());
787+
}
788+
784789
// filter out team members without capacity
785790
let filtered_candidates = filter_by_capacity(db, &candidates)
786791
.await

0 commit comments

Comments
 (0)