When I try to create a branch with these info, error occured.
- Branch Type :Custom
- name:Check/20240113
The error message is as follows: "Failed to create branch."
Invalid branch name.bugfix/20240113 does not match regex ^(develop|(release|feature|work)/[0-9a-zA-Z_/.\-]+)
Could anyone tell me the reason?
Best regards.
Tom
Hi Tom,
Welcome to the Atlassian community.
I suspect the Bitbucket administrator has configured some restrictions on the naming convention on the branch using third-party plugins. The regex used in the rule is "^(develop|(release|feature|work)/[0-9a-zA-Z_/.\-]+)".
To help you align your branch name with the rule, you may decode the regex from any of the sites available on the Internet. I am providing you a screenshot of the decoded version of regex. One of the examples of the branch name would be release/20240113.
As an alternative, you can get in touch with the Bitbucket administrator at your company to request an exclusion or learn more about the limitations on branch creation.
Regards,
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.