MCPcopy Create free account
hub / github.com/anomalyco/opencode / latest

Function latest

script/raw-changelog.ts:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53async function latest() {
54 const data = await $`gh api "/repos/${repo}/releases?per_page=100"`.json()
55 const release = (data as Release[]).find((item) => !item.draft)
56 if (!release) throw new Error("No releases found")
57 return release.tag_name.replace(/^v/, "")
58}
59
60async function diff(base: string, head: string) {
61 const list: Diff[] = []

Callers 1

raw-changelog.tsFile · 0.70

Calls 2

jsonMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected