Skip to content

Branch name with summary does not remove invalid characters from ticket title

When creating a branch for a jira ticket with an invalid character for a branch name (':' for example), the invalid character should be removed to allow branch creation. Currently the branh creation fails with an error message.

Steps to reproduce:

  1. Create a Jira ticket containing an invalid character for a branch name. In this case ':'
  2. Create a new branch, with the summary option activated in the settings
  3. Branch creation failes with error message: 'feature/XXXXX-1234-Test:-This-is-a-ticket-title' is not a valid branch name hint: See man git check-ref-format hint: Disable this message with "git config advice.refSyntax false'