Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    dir: &Path,
    target: &str,
    lookup: &dyn PrLookup,
) -> Result<(RangeSpec, PullRequest)>
Expand description

Turns a PR URL or number into a range: fetches the PR’s base and head into refs/declutter/pr/<n>/ (so no local branch is touched) and compares the head against its merge base with the base, as the PR page does. The host’s CLI is only asked when the remote publishes no merge ref for the PR.