fix: use closedByPullRequestsReferences in gh_issue_close (#5)

Merged
FO
2mo ago
+6-6

fixes issue #5 — gh_issue_close crashed on the removed closedByPullRequestsUrls JSON field; switched to closedByPullRequestsReferences (array of {number, url}).

Closes #5


Summary by cubic

Fixes gh_issue_close crashing on the removed closedByPullRequestsUrls JSON field by switching to closedByPullRequestsReferences, which returns an array of {number, url} objects. The zombie-issue output now shows both the PR number and URL.

Summary by CodeRabbit

  • Bug Fixes
    • Improved closed-issue detection by using pull request references directly.
    • Issue details now display both the pull request number and URL when identifying issues closed by pull requests.
    • Updated issue data handling to provide more complete and reliable pull request information.