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

Function thanks

script/raw-changelog.ts:183–196  ·  view source on GitHub ↗
(from: string, to: string, reuse: boolean)

Source from the content-addressed store, hash-verified

181}
182
183async function thanks(from: string, to: string, reuse: boolean) {
184 const release = reuse ? await published(to) : undefined
185 if (release) return release.split(/\r?\n/)
186
187 const users = await contributors(from, to)
188 if (users.size === 0) return []
189
190 const lines = [`**Thank you to ${users.size} community contributor${users.size > 1 ? "s" : ""}:**`]
191 for (const [name, commits] of users) {
192 lines.push(`- @${name}:`)
193 for (const commit of commits) lines.push(` - ${commit}`)
194 }
195 return lines
196}
197
198function format(from: string, to: string, list: Commit[], thanks: string[]) {
199 const grouped = new Map<string, Map<string, string[]>>()

Callers 1

raw-changelog.tsFile · 0.85

Calls 3

contributorsFunction · 0.85
pushMethod · 0.80
publishedFunction · 0.70

Tested by

no test coverage detected