From 3c41e4e8f12b7f06258490bb7a85388de1eca381 Mon Sep 17 00:00:00 2001 From: Dax Date: Fri, 2 Jan 2026 16:02:52 -0500 Subject: chore: rename repo references from sst/opencode to anomalyco/opencode (#6687) Co-authored-by: Github Action --- script/changelog.ts | 6 +++--- script/stats.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'script') diff --git a/script/changelog.ts b/script/changelog.ts index 18fc60993..f575ff494 100755 --- a/script/changelog.ts +++ b/script/changelog.ts @@ -18,7 +18,7 @@ export const team = [ ] export async function getLatestRelease() { - return fetch("https://api.github.com/repos/sst/opencode/releases/latest") + return fetch("https://api.github.com/repos/anomalyco/opencode/releases/latest") .then((res) => { if (!res.ok) throw new Error(res.statusText) return res.json() @@ -39,7 +39,7 @@ export async function getCommits(from: string, to: string): Promise { // Get commit data with GitHub usernames from the API const compare = - await $`gh api "/repos/sst/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text() + await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {sha: .sha, login: .author.login, message: .commit.message}'`.text() const commitData = new Map() for (const line of compare.split("\n").filter(Boolean)) { @@ -195,7 +195,7 @@ export async function getContributors(from: string, to: string) { const fromRef = from.startsWith("v") ? from : `v${from}` const toRef = to === "HEAD" ? to : to.startsWith("v") ? to : `v${to}` const compare = - await $`gh api "/repos/sst/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text() + await $`gh api "/repos/anomalyco/opencode/compare/${fromRef}...${toRef}" --jq '.commits[] | {login: .author.login, message: .commit.message}'`.text() const contributors = new Map() for (const line of compare.split("\n").filter(Boolean)) { diff --git a/script/stats.ts b/script/stats.ts index d5f6c103f..318b590af 100755 --- a/script/stats.ts +++ b/script/stats.ts @@ -73,7 +73,7 @@ async function fetchReleases(): Promise { const per = 100 while (true) { - const url = `https://api.github.com/repos/sst/opencode/releases?page=${page}&per_page=${per}` + const url = `https://api.github.com/repos/anomalyco/opencode/releases?page=${page}&per_page=${per}` const response = await fetch(url) if (!response.ok) { @@ -188,7 +188,7 @@ async function save(githubTotal: number, npmDownloads: number) { ) } -console.log("Fetching GitHub releases for sst/opencode...\n") +console.log("Fetching GitHub releases for anomalyco/opencode...\n") const releases = await fetchReleases() console.log(`\nFetched ${releases.length} releases total\n`) -- cgit v1.2.3