瀏覽代碼

Fix auto-assignment not filtering out author.

Eric Huss 2 年之前
父節點
當前提交
4fa7b57add
共有 1 個文件被更改,包括 3 次插入1 次删除
  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)
 }