This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmkver.conf
93 lines (91 loc) · 2.35 KB
/
mkver.conf
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
tagPrefix: "v"
# defaults are used if they are not overriden by a branch config
defaults {
# whether to really tag the branch when `git mkver tag` is called
tag: false
# message for annotated version tags in git
tagMessageFormat: "release {Tag}"
# format tring for the pre-release. The format must end with {PreReleaseNumber} if it is used.
# Examples:
# * alpha
# * SNAPSHOT
# * RC{PreReleaseNumber}
# * pre-{CommitsSinceTag}
preReleaseFormat: "RC{PreReleaseNumber}"
# whether to include the build metadata in the Semantic Version when next or tag are called
includeBuildMetaData: false
# action to take, if after analyzing all commit messages since the last tag
# no increment instructions can be found. Options are:
# * Fail - application will exit
# * IncrementMajor - bump the major version
# * IncrementMinor - bump the minor version
# * IncrementPatch - bump the patch version
# * NoIncrement - no version change will occur
whenNoValidCommitMessages: NoIncrement
# list of formats
formats: [
{
name: Application
format: "{Version}"
}
{
name: ApplicationBranch
format: "{Version}.{Branch}.{ShortHash}"
}
]
}
# branch specific overrides of the default config
# name is a regular expression
# branches are tried for matches in order
branches: [
{
pattern: "main"
tag: true
includeBuildMetaData: false
}
{
pattern: ".*"
tag: false
formats: [
{
name: Application
format: "{ApplicationBranch}"
}
]
}
]
# commitMessageActions configure how different commit messages will increment
# the version number
commitMessageActions: [
{
# pattern is a regular expression to occur in a single line
pattern: "BREAKING CHANGE"
# action is one of:
# * Fail - application will exit
# * IncrementMajor - bump the major version
# * IncrementMinor - bump the minor version
# * IncrementPatch - bump the patch version
# * NoIncrement - no version change will occur
action: IncrementMajor
}
{
pattern: "major(\\(.+\\))?:"
action: IncrementMajor
}
{
pattern: "minor(\\(.+\\))?:"
action: IncrementMinor
}
{
pattern: "feat(\\(.+\\))?:"
action: IncrementMinor
}
{
pattern: "patch(\\(.+\\))?:"
action: IncrementPatch
}
{
pattern: "fix(\\(.+\\))?:"
action: IncrementPatch
}
]