Add commitPrefix for defining a prefix for any project

This commit is contained in:
Jonathan Duck 2024-01-31 20:11:01 -08:00 committed by Stefan Haller
parent af0897f18f
commit 01ff18dd92
7 changed files with 86 additions and 4 deletions

View file

@ -549,6 +549,15 @@ Example:
- Branch name: feature/AB-123
- Commit message: [AB-123] Adding feature
```yaml
git:
commitPrefix:
pattern: "^\\w+\\/(\\w+-\\w+).*"
replace: '[$1] '
```
If you want repository-specific prefixes, you can map them with `commitPrefixes`. If you have both `commitPrefixes` defined and an entry in `commitPrefixes` for the current repo, the `commitPrefixes` entry is given higher precedence. Repository folder names must be an exact match.
```yaml
git:
commitPrefixes: