Skip to content

[Feature] Advanced Template for commits #704

@mkozek

Description

@mkozek

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"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions