Преглед изворни кода

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.