Skip to content

Set git.commitPrefix as a list instead of a dict to change several branch pattern into different commit messages prefixes #4194

Closed
@ginolegigot

Description

@ginolegigot

Is your feature request related to a problem? Please describe.
Hello! Would it be possible to set commitPrefix as a list so we can change/transform several branch patterns into several commit message prefix pattern ?

Describe the solution you'd like
For example something like this:

git:
  commitPrefix:
    - pattern: "^\\w+-\\w+.*"
      replace: '[JIRA $0] '
    - pattern: "^\\w+\\/(\\w+-\\w+).*"
      replace: '[$1] '

Currently we have:

git:
  commitPrefix:
    pattern: "^\\w+-\\w+.*"
    replace: '[JIRA $0] '

Thanks for your reading !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions