mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
fix(cli): always use github releases for version lookup when GH_REPO is set
This commit is contained in:
@@ -66,7 +66,7 @@ async function fetchLatest() {
|
||||
}
|
||||
|
||||
async function fetchHighest() {
|
||||
if (!env.KILO_RELEASE || !process.env.GH_REPO) return fetchLatest()
|
||||
if (!process.env.GH_REPO) return fetchLatest()
|
||||
const data: { tagName: string }[] = await $`gh release list --json tagName --limit 100 --repo ${process.env.GH_REPO}`
|
||||
.json()
|
||||
.catch(() => [])
|
||||
|
||||
Reference in New Issue
Block a user