From 033405a408e83d22b5d322c35165431c2b01809f Mon Sep 17 00:00:00 2001 From: Carter McKinnon Date: Fri, 2 Aug 2024 09:42:30 -0700 Subject: [PATCH] bug(bot): fix osDistro prefix matching --- .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); } }