Skip to main content

detect_pr_remote

Function detect_pr_remote 

Source
pub fn detect_pr_remote(repo: &Repository) -> Result<String>
Expand description

Select which remote to use for fetching PR refs.

Priority: upstreamorigin → first available remote. Returns PrError::NoRemoteConfigured if the repository has no remotes.