Skip to content

Commit d81d9fe

Browse files
committed
Add bypass for user ghost
This should fix the case where the special GH user ghost is used to bypass PR assignment to a real GH user.
1 parent ac05e4a commit d81d9fe

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)