Skip to main content

setup_fork_remote

Function setup_fork_remote 

Source
pub fn setup_fork_remote(
    repo: &Repository,
    metadata: &PrMetadata,
) -> Result<String>
Expand description

Ensure a remote for a fork PR exists, then return its name.

For non-fork PRs this is equivalent to detect_pr_remote. For fork PRs, a remote named pr-{number}-fork is added if it doesn’t already exist, pointing at the fork’s clone URL.