In commit templates allow to filter branch name and file list by regex.
Proposed syntax
${regex_T:{<filter regex>}:{<replacement regex>}} where T is "b" for branch, "f" for files.
Example:
${regex_b:{(.*)\/(issue-\d+).*}:{ID: $2 Type:$1}}
to convert branch name "feature/issue-1234-add-new-feature"
into: "ID: issue-1234 Type:feature"