Context
gh_issue_close crashes when viewing the target issue:
Error viewing issue #N: gh exited with code 1: Unknown JSON field: "closedByPullRequestsUrls"
The gh CLI renamed this field; the current valid field is
closedByPullRequestsReferences (an array of objects, each with number,
title, url).
Scope
src/tools/gh-issue-close.ts:
- line 66: change the
--json field list from closedByPullRequestsUrls to
closedByPullRequestsReferences
- update the
IssueView interface (line 16) and the zombie-detection loop
(lines 81-94) to match the new object shape (iterate {number, url} refs,
render url (PR #number))
Definition of Done
Context
gh_issue_closecrashes when viewing the target issue:The
ghCLI renamed this field; the current valid field isclosedByPullRequestsReferences(an array of objects, each withnumber,title,url).Scope
src/tools/gh-issue-close.ts:--jsonfield list fromclosedByPullRequestsUrlstoclosedByPullRequestsReferencesIssueViewinterface (line 16) and the zombie-detection loop(lines 81-94) to match the new object shape (iterate
{number, url}refs,render
url (PR #number))Definition of Done
bun run lint:ts(tsc --noEmit) cleanbun testpassesbun run buildregeneratesdist/four-opencode-git.js(committed)