Explorar el Código

Fix auto-assignment not filtering out author.

Eric Huss hace 2 años
padre
commit
4fa7b57add
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)
 }