chore: rename repo references from sst/opencode to anomalyco/opencode (#6687)

Co-authored-by: Github Action <action@github.com>
This commit is contained in:
Dax
2026-01-02 16:02:52 -05:00
committed by GitHub
parent 66bc046503
commit 3c41e4e8f1
38 changed files with 77 additions and 77 deletions

View File

@@ -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)) {

View File

@@ -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`)