From 449565cb23d8fd29c27dbcc7d21d3ffca5f8cc32 Mon Sep 17 00:00:00 2001 From: Carter Date: Fri, 2 Aug 2024 09:48:40 -0700 Subject: [PATCH] bug(bot): fix osDistro prefix matching (#1906) --- .github/actions/bot/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/bot/index.js b/.github/actions/bot/index.js index 0812a0f04..f8c492dec 100644 --- a/.github/actions/bot/index.js +++ b/.github/actions/bot/index.js @@ -185,9 +185,8 @@ class CICommand { }); const osDistros = []; for (const file of files.data) { - for (const prefix of this.osDistroPathPrefixHints) { + for (const [prefix, osDistro] of Object.entries(this.osDistroPathPrefixHints)) { if (file.filename.startsWith(prefix)) { - const osDistro = this.osDistroPathPrefixHints[prefix]; osDistros.push(osDistro); } }