Browse Source

Fix auto-assignment not filtering out author.

Eric Huss 2 years ago
parent
commit
4fa7b57add
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/handlers/assign.rs

+ 3 - 1
src/handlers/assign.rs

@@ -682,7 +682,9 @@ fn candidate_reviewers_from_names<'a>(
         }
 
         // Assume it is a user.
-        candidates.insert(group_or_user);
+        if filter(&group_or_user) {
+            candidates.insert(group_or_user);
+        }
     }
     Ok(candidates)
 }