get_branch_name_from_url

Function get_branch_name_from_url 

Source
pub fn get_branch_name_from_url(url: &Url) -> Result<String>
Expand description

Extracts the branch name from a GitHub pull request Url.

ยงErrors

  • Executing gh fails or returns a non-zero exit status.
  • Invoking gh pr view fails.
  • Output cannot be parsed.