diff options
| author | Dax <[email protected]> | 2026-01-02 16:02:52 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-02 16:02:52 -0500 |
| commit | 3c41e4e8f12b7f06258490bb7a85388de1eca381 (patch) | |
| tree | c031d4b5fd12409c0a25bf18f39a9b8a191cc625 /script | |
| parent | 66bc046503190622e9d652bbed6a940b003aeb77 (diff) | |
| download | opencode-3c41e4e8f12b7f06258490bb7a85388de1eca381.tar.gz opencode-3c41e4e8f12b7f06258490bb7a85388de1eca381.zip | |
chore: rename repo references from sst/opencode to anomalyco/opencode (#6687)
Co-authored-by: Github Action <[email protected]>
Diffstat (limited to 'script')
| -rwxr-xr-x | script/changelog.ts | 6 | ||||
| -rwxr-xr-x | script/stats.ts | 4 |
2 files changed, 5 insertions, 5 deletions
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<Commit[]> { // 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<string, { login: string | null; message: string }>() 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<string, string[]>() 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<Release[]> { 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`) |
