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

Function commitSmokeChanges

script/beta.ts:103–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103async function commitSmokeChanges() {
104 const out = await $`git status --porcelain`.text()
105 if (!out.trim()) {
106 console.log("Smoke check passed")
107 return true
108 }
109
110 try {
111 await $`git add -A`
112 await $`git commit -m "Fix beta integration"`
113 } catch (err) {
114 console.log(`Failed to commit smoke fixes: ${err}`)
115 return false
116 }
117
118 if (!(await validate())) return false
119
120 const left = await $`git status --porcelain`.text()
121 if (!left.trim()) {
122 console.log("Smoke check passed")
123 return true
124 }
125
126 console.log(`Smoke check left uncommitted changes:\n${left}`)
127 return false
128}
129
130async function install() {
131 console.log(" Regenerating bun.lock...")

Callers 1

smokeFunction · 0.85

Calls 3

validateFunction · 0.70
textMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected