ci: adjust auto close issue script to use not planned instead of completed (#24253)

This commit is contained in:
Aiden Cline 2026-04-25 00:47:36 -04:00 committed by GitHub
commit f7d527cd28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ async function close(num: number) {
const patch = await fetch(base, { const patch = await fetch(base, {
method: "PATCH", method: "PATCH",
headers, headers,
body: JSON.stringify({ state: "closed", state_reason: "completed" }), body: JSON.stringify({ state: "closed", state_reason: "not_planned" }),
}) })
if (!patch.ok) throw new Error(`Failed to close #${num}: ${patch.status} ${patch.statusText}`) if (!patch.ok) throw new Error(`Failed to close #${num}: ${patch.status} ${patch.statusText}`)