Skip to main content

detect_remote

Function detect_remote 

Source
pub fn detect_remote(repo_url: &str) -> Result<ForgeRemote, ReviewRequestError>
Expand description

Detects one supported forge remote from repo_url.

ยงErrors

Returns ReviewRequestError::UnsupportedRemote when the repository remote does not map to GitHub or GitLab.