diff options
author | Jonathan Duck <duckbrain30@gmail.com> | 2024-01-31 20:11:01 -0800 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-05-01 19:03:12 +0200 |
commit | 01ff18dd925f68e7ebfd21b52803cf5fc05cf2d3 (patch) | |
tree | fda620709d1f60c87ed4ed72287c7a6aeff6240e /docs | |
parent | af0897f18fc58ecab71c1334823887177cc8bc1f (diff) |
Add commitPrefix for defining a prefix for any project
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Config.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md index 077637ae8..d85637429 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -551,6 +551,15 @@ Example: ```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: my_project: # This is repository folder name pattern: "^\\w+\\/(\\w+-\\w+).*" |