fix: Add --yes flag to gh pr merge command (#142)

* fix: squash and merge issue

- fix: squash and merge issue

* fix: use GH_PROMPT_DISABLED instead of invalid --yes flag
This commit is contained in:
Jinjing
2026-03-27 12:49:17 -07:00
committed by GitHub
parent 59c5f29e25
commit a728982a1d
+2 -1
View File
@@ -251,7 +251,8 @@ export async function mergePR(
try {
await execFileAsync('gh', ['pr', 'merge', String(prNumber), `--${method}`, '--delete-branch'], {
cwd: repoPath,
encoding: 'utf-8'
encoding: 'utf-8',
env: { ...process.env, GH_PROMPT_DISABLED: '1' }
})
return { ok: true }
} catch (err) {