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

Function cleanup

script/beta.ts:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44async function cleanup() {
45 try {
46 await $`git merge --abort`
47 } catch {}
48 try {
49 await $`git checkout -- .`
50 } catch {}
51 try {
52 await $`git clean -fd`
53 } catch {}
54}
55
56function lines(prs: PR[]) {
57 return prs.map((x) => `- #${x.number}: ${x.title}`).join("\n") || "(none)"

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected