Browse Source

Merge pull request #1663 from ehuss/fix-author-filter

Fix auto-assignment not filtering out author.
Mark Rousskov 2 năm trước cách đây
mục cha
commit
d7c405b8c1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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)
 }