[mr create] If branch name starts with jira ticket id and branch has multiple commits the automatically created title of the mr should retain the jira ticket

Problem to solve

Scenario:

  1. I have a jira board CHUJ and ticker 666 on this board.
  2. I name my brach CHUJ-666-bla-bla-bla
  3. I create multiple commits on the branch
  4. I run glab mr create -fy

What happens:

The created MR has title: "CHUJ 666 bla bla bla"

What I want to happen:

I want the title to be "CHUJ-666 | bla bla bla"

Proposal

I'll create an MR soon.

Further details

Links / references

Regex for jira ticket id: https://stackoverflow.com/a/73914895/7195666