瀏覽代碼

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

Enable wg-async-foundations to be "team members" in full
Mark Rousskov 3 年之前
父節點
當前提交
2064813a7f
共有 1 個文件被更改,包括 7 次插入3 次删除
  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.