Skip to main content

fetch_pr_metadata

Function fetch_pr_metadata 

Source
pub fn fetch_pr_metadata(pr_number: u32) -> Result<PrMetadata>
Expand description

Fetch PR metadata for pr_number using the gh CLI.

Runs gh pr view <pr_number> --json ... and parses the JSON output. Requires gh to be authenticated (gh auth login).