Skip to content

Commit d165c77

Browse files
Fix PR viewer crash on older gh CLI versions
Remove closingIssuesReferences from gh pr view query fields since it is not supported by older versions of the gh CLI, causing PR details to fail with "Unknown JSON field" error. The linked_issues struct field already has serde(default) so it gracefully falls back to an empty list. Closes #576
1 parent 1bcadd5 commit d165c77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/github/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub fn github_get_pr_details(
247247

248248
let json_fields = "number,title,body,state,author,createdAt,updatedAt,isDraft,reviewDecision,\
249249
url,headRefName,baseRefName,additions,deletions,changedFiles,commits,\
250-
statusCheckRollup,closingIssuesReferences,reviewRequests,mergeStateStatus,\
250+
statusCheckRollup,reviewRequests,mergeStateStatus,\
251251
mergeable,labels,assignees";
252252

253253
let output = gh_command(&app, Some(repo_dir))

0 commit comments

Comments
 (0)