Skip to content

[Feature Request] Allow configuration of nesting levels in $(branch_name) #2112

@redsigma

Description

@redsigma

This is related to the COMMIT TEMPLATE section in the configure this repository panel

Currently if i have a nested branch such as feature/Q1/release/TASK-01 , it will use its full name if i type the $(branch_name) in the commit. This doesn't look good if the branch name is very long

I would like to be able to use only TASK-01 or maybe release/TASK-01 as the name


For that it would be nice if we can use this syntax:

$(branch_name:1) -> TASK-01
$(branch_name:2) -> release/TASK-01
$(branch_name) -> feature/Q1/release/TASK-01 (same as before no change)

Basically the number is the max nesting level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions