Преглед на файлове

Add Prioritization-WG members to the rust team members

LeSeulArtichaut преди 5 години
родител
ревизия
e0913dcdcb
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      src/github.rs

+ 4 - 1
src/github.rs

@@ -61,7 +61,10 @@ impl User {
         let is_triager = map
             .get("wg-triage")
             .map_or(false, |w| w.members.iter().any(|g| g.github == self.login));
-        Ok(map["all"].members.iter().any(|g| g.github == self.login) || is_triager)
+        let is_pri_member = map
+            .get("wg-prioritization")
+            .map_or(false, |w| w.members.iter().any(|g| g.github == self.login));
+        Ok(map["all"].members.iter().any(|g| g.github == self.login) || is_triager || is_pri_member)
     }
 
     // Returns the ID of the given user, if the user is in the `all` team.