Quellcode durchsuchen

Merge pull request #1510 from Mark-Simulacrum/team-wg

Enable wg-async-foundations to be "team members" in full
Mark Rousskov vor 3 Jahren
Ursprung
Commit
2064813a7f
1 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. 7 3
      src/github.rs

+ 7 - 3
src/github.rs

@@ -188,15 +188,19 @@ impl User {
         let is_pri_member = map
             .get("wg-prioritization")
             .map_or(false, |w| w.members.iter().any(|g| g.github == self.login));
+        let is_async_member = map
+            .get("wg-async-foundations")
+            .map_or(false, |w| w.members.iter().any(|g| g.github == self.login));
         let in_all = map["all"].members.iter().any(|g| g.github == self.login);
         log::trace!(
-            "{:?} is all?={:?}, triager?={:?}, prioritizer?={:?}",
+            "{:?} is all?={:?}, triager?={:?}, prioritizer?={:?}, async?={:?}",
             self.login,
             in_all,
             is_triager,
-            is_pri_member
+            is_pri_member,
+            is_async_member,
         );
-        Ok(in_all || is_triager || is_pri_member)
+        Ok(in_all || is_triager || is_pri_member || is_async_member)
     }
 
     // Returns the ID of the given user, if the user is in the `all` team.