MCPcopy Index your code
hub / github.com/anomalyco/opencode / published

Function published

script/raw-changelog.ts:172–181  ·  view source on GitHub ↗
(to: string)

Source from the content-addressed store, hash-verified

170}
171
172async function published(to: string) {
173 if (to === "HEAD") return
174 const body = await $`gh release view ${ref(to)} --repo ${repo} --json body --jq .body`.text().catch(() => "")
175 if (!body) return
176
177 const lines = body.split(/\r?\n/)
178 const start = lines.findIndex((line) => line.startsWith("**Thank you to "))
179 if (start < 0) return
180 return lines.slice(start).join("\n").trim()
181}
182
183async function thanks(from: string, to: string, reuse: boolean) {
184 const release = reuse ? await published(to) : undefined

Callers 1

thanksFunction · 0.70

Calls 2

refFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected