Skip to main content

fetch_pr_head

Function fetch_pr_head 

Source
pub fn fetch_pr_head(slug: &str, number: u64) -> Result<PrHead>
Expand description

Run gh pr view <n> --repo <slug> --json … and parse the head metadata gwm review needs (author / head ref / base ref). Works for PRs in any state — open, draft, closed, or merged.