pr_title_from_branch_name

Function pr_title_from_branch_name 

Source
pub(crate) fn pr_title_from_branch_name(branch_name: &str) -> Result<String>
Expand description

Parses a branch name to generate a pull request title.

ยงErrors

  • Branch name has no parts separated by -.
  • The first part is not a valid usize for issue number.
  • The title parts result in an empty title.