From 622b9eb8bb3f824dbc87b1bdeaa96324e85789f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Casta=C3=B1o=20Arteaga?= Date: Wed, 20 Mar 2024 07:51:32 +0100 Subject: [PATCH] Use team slug when fetching repo permissions (#179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio CastaƱo Arteaga --- clowarden-core/src/services/github/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clowarden-core/src/services/github/state.rs b/clowarden-core/src/services/github/state.rs index 04bf9fc..e8f3a7a 100644 --- a/clowarden-core/src/services/github/state.rs +++ b/clowarden-core/src/services/github/state.rs @@ -214,7 +214,7 @@ impl State { .await .context(format!("error listing repository {} teams", &repo.name))? .into_iter() - .map(|t| (t.name, t.permissions.into())) + .map(|t| (t.slug, t.permissions.into())) .collect(); let teams = if teams.is_empty() { None } else { Some(teams) };