Customizable Branch Name Generation for Issue-Driven Branches
Describe the request:
Currently, when creating a branch from an issue in Iceberg, the branch name is automatically generated by taking the issue's title and concatenating words with dashes. Special characters are ignored, resulting in branch names like:
- Issue: "[FIX] Tags -> Separate Packages"
- Generated Branch: "FIX-Tags---Separate-Packages"
This method may not be suitable for users who want to follow a specific naming convention for branches and issues, as it doesn't account for special characters or, for example, their desired naming structure.
Expected Behavior:
While the current behavior could be left as the default, it would be helpful to introduce a configuration option to customize the branch name generation.
A user-defined format would allow the inclusion of elements like contributor initials and issue type (e.g. feat, fix, chore). For example, one convention I personally follow when there are multiple contributors is {contributor_initials}/{feat/fix/chore}/{branch_name} as it introduces some kind of branch organization and logic to figure out what's for what (tree-like) w/o looking at documentation.
Suggested Features:
- Allow users to specify a custom branch name format.
Expected Development Cost:
- This feature could be a good candidate for inclusion in the Pharo Sprint.
Why go via the issue driven branch feature and not just create the branch like a local branch? Then you can give the name you want
This is just a possible QoL feature where you wouldn't have to repeat writing the same format (especially if it's longer).