fix: address review findings (#2206)
This commit is contained in:
@@ -323,6 +323,10 @@ export async function updatePullRequestBySlug(
|
||||
patchArgs.push('--raw-field', `body=${args.updates.body}`)
|
||||
fieldCount++
|
||||
}
|
||||
if (args.updates.state !== undefined) {
|
||||
patchArgs.push('--raw-field', `state=${args.updates.state}`)
|
||||
fieldCount++
|
||||
}
|
||||
if (fieldCount === 0) {
|
||||
// No fields to update — nothing to do.
|
||||
return { ok: true }
|
||||
|
||||
Reference in New Issue
Block a user