From c6dce2d6cb23d19f2b525728e6f178b58140ba47 Mon Sep 17 00:00:00 2001 From: Tunglies Date: Tue, 11 Mar 2025 00:56:35 +0800 Subject: [PATCH] feat: increase tag retrieval limit and refine alpha tag identification --- scripts/updater.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/updater.mjs b/scripts/updater.mjs index 0703c751..ef5f0255 100644 --- a/scripts/updater.mjs +++ b/scripts/updater.mjs @@ -23,7 +23,7 @@ async function resolveUpdater() { const { data: tags } = await github.rest.repos.listTags({ ...options, - per_page: 20, // Increase to have more chances to find alpha tags + per_page: 50, // Increase to have more chances to find alpha tags page: 1, }); @@ -31,8 +31,11 @@ async function resolveUpdater() { const stableTag = tags.find( (t) => t.name.startsWith("v") && !t.name.includes("alpha"), ); - const alphaTag = tags.find((t) => t.name.includes("alpha")); + const alphaTag = tags.find( + (t) => t.name.startsWith("alpha") && !t.name.includes("v"), + ); + console.log(tags); console.log("Stable tag:", stableTag); console.log("Alpha tag:", alphaTag); console.log();