The open source coding agent.
TypeScript
ci: error github api fail
Dax Raadc2208fa1f931
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.tsindex 1064a87e083..a326b69ebaa 100755--- a/packages/opencode/script/publish.ts+++ b/packages/opencode/script/publish.ts@@ -90,7 +90,10 @@ if (!snapshot) {}const previous = await fetch("https://api.github.com/repos/sst/opencode/releases/latest")- .then((res) => res.json())+ .then((res) => {+ if (!res.ok) throw new Error(res.statusText)+ return res.json()+ }).then((data) => data.tag_name)console.log("finding commits between", previous, "and", "HEAD")