mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 10:13:45 +08:00
feat: increase tag retrieval limit and refine alpha tag identification
This commit is contained in:
parent
3c7768b379
commit
c6dce2d6cb
@ -23,7 +23,7 @@ async function resolveUpdater() {
|
|||||||
|
|
||||||
const { data: tags } = await github.rest.repos.listTags({
|
const { data: tags } = await github.rest.repos.listTags({
|
||||||
...options,
|
...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,
|
page: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -31,8 +31,11 @@ async function resolveUpdater() {
|
|||||||
const stableTag = tags.find(
|
const stableTag = tags.find(
|
||||||
(t) => t.name.startsWith("v") && !t.name.includes("alpha"),
|
(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("Stable tag:", stableTag);
|
||||||
console.log("Alpha tag:", alphaTag);
|
console.log("Alpha tag:", alphaTag);
|
||||||
console.log();
|
console.log();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user