fix: address review findings (#2339)

This commit is contained in:
Jinjing
2026-05-19 13:03:47 -07:00
committed by GitHub
parent 05286ce00b
commit 9bbfb04a09
13 changed files with 1105 additions and 162 deletions
+22
View File
@@ -242,6 +242,28 @@ export async function updateIssue(
}
}
if (updates.body !== undefined) {
await acquire()
try {
await ghExecFileAsync(
[
'api',
'-X',
'PATCH',
`repos/${ownerRepo.owner}/${ownerRepo.repo}/issues/${issueNumber}`,
'--raw-field',
`body=${updates.body}`
],
ghOptions
)
} catch (err) {
const stderr = err instanceof Error ? err.message : String(err)
errors.push(classifyGhError(stderr).message)
} finally {
release()
}
}
// Field edits (labels, assignees, title) via gh issue edit
const editArgs: string[] = ['issue', 'edit', String(issueNumber), '--repo', repo]
let hasEditArgs = false