-
Notifications
You must be signed in to change notification settings - Fork 1
/
GitVersion.yml
34 lines (28 loc) · 981 Bytes
/
GitVersion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
mode: MainLine
major-version-bump-message: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)'
minor-version-bump-message: '^(feat)(\\([\\w\\s-]*\\))?:'
patch-version-bump-message: '^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?:'
branches:
main:
regex: ^main$
tag: ''
increment: Patch
track-merge-target: true
feature:
regex: feature?[/-]
tag: useBranchName
increment: Patch
source-branches: [ 'main','feature','fix' ]
fix:
regex: fix?[/-]
tag: useBranchName
increment: Patch
source-branches: [ 'main','feature','fix' ]
pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
tag: PullRequest
increment: Patch
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '[/-](?<number>\d+)[-/]'
track-merge-target: false
source-branches: [ 'main','feature','fix' ]