Add ability to limit branch name length

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Proposal

User requested the ability to set limit on branch name length #21243 (comment 215123061):

It will be nice to customize the length of the branch name. Since the lenght of the label of a domain and the name of a DB in MySQL are limited to 63 characters, I'm running into an issue with the name of the branches created from an Issue and the Web IDE. I need to limit the length of the branch name to 63 characters because I use the branch name to create the domain (i.e <branch_name>.review.myproject.com) and DB when creating newly environments for my project.

With !93108 (merged) we added the ability to set a template for a branch name created from an issue.

This issue is to add on this functionality of the branch name template and add a limit to the length of the name.

Concept

From #21243 (comment 1059275777)

image

Edited Aug 21, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading