Skip to main content

fetch_closing_issues

Function fetch_closing_issues 

Source
async fn fetch_closing_issues<S: BuildHasher>(
    cwd: &Path,
    env: &HashMap<String, String, S>,
    number: u64,
    budget: Duration,
) -> Vec<GitIssueRef>
Expand description

Fetch the PR’s closing-issue list via gh pr view <n> --json closingIssuesReferences. The REST commits/<sha>/pulls response doesn’t carry closing issues (a GraphQL-only field), so this second call keeps the → closes #M tail rendering. Degrades to an empty list on any failure - the PR row is the headline, the closes are the tail.