We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965fa0b commit 488642cCopy full SHA for 488642c
src/github.rs
@@ -267,16 +267,17 @@ impl User {
267
}
268
269
// Returns the ID of the given user, if the user is in the `all` team.
270
-pub async fn get_id_for_username<'a>(
271
- client: &'a GithubClient,
+pub async fn get_id_for_username(
+ client: &GithubClient,
272
login: &str,
273
) -> anyhow::Result<Option<u64>> {
274
let permission = crate::team_data::teams(client).await?;
275
let map = permission.teams;
276
+ let login = login.to_lowercase();
277
Ok(map["all"]
278
.members
279
.iter()
- .find(|g| g.github == login)
280
+ .find(|g| g.github.to_lowercase() == login)
281
.map(|u| u.github_id))
282
283
0 commit comments