Skip to content

Commit e1f3576

Browse files
authored
Merge pull request #832 from JakeGinnivan/BumpDevelopWhenReleaseBranchCreated
Bump develop when release branch created
2 parents 35c696a + 3f6bc9e commit e1f3576

39 files changed

+437
-213
lines changed

GitVersion.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
assembly-versioning-scheme: MajorMinorPatch
2-
next-version: 3.4.0
2+
branches:
3+
master:
4+
tag: beta
5+
ignore:
6+
sha: []

docs/configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ The global configuration options are:
4848
- **`sha:`** A sequence of SHAs to be excluded from the version calculations. Useful when there is a rogue commit in history yielding a bad version.
4949
- **`commits-before:`** Allows to setup an exclusion range. Effectively any commit < `commits-before` will be ignored.
5050

51+
- **`is-develop:`** Indicates this branch config represents develop in GitFlow
52+
53+
**`is-release-branch:`** Indicates this branch config represents a release branch in GitFlow
54+
5155
## Branch configuration
5256

5357
Then we have branch specific configuration, which looks something like this:
3.32 KB
Loading
3.29 KB
Loading
5.65 KB
Loading
2.74 KB
Loading
4.89 KB
Loading
5.25 KB
Loading
3.41 KB
Loading

src/GitVersionCore.Tests/ConfigProviderTests.CanWriteOutEffectiveConfiguration.approved.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,42 +16,56 @@ branches:
1616
increment: Patch
1717
prevent-increment-of-merged-branch-version: true
1818
track-merge-target: false
19+
is-develop: false
20+
is-release-branch: false
1921
releases?[/-]:
2022
mode: ContinuousDelivery
2123
tag: beta
2224
increment: Patch
2325
prevent-increment-of-merged-branch-version: true
2426
track-merge-target: false
27+
is-develop: false
28+
is-release-branch: true
2529
features?[/-]:
2630
mode: ContinuousDelivery
2731
tag: useBranchName
2832
increment: Inherit
2933
prevent-increment-of-merged-branch-version: false
3034
track-merge-target: false
35+
is-develop: false
36+
is-release-branch: false
3137
(pull|pull\-requests|pr)[/-]:
3238
mode: ContinuousDelivery
3339
tag: PullRequest
3440
increment: Inherit
3541
prevent-increment-of-merged-branch-version: false
3642
tag-number-pattern: '[/-](?<number>\d+)[-/]'
3743
track-merge-target: false
44+
is-develop: false
45+
is-release-branch: false
3846
hotfix(es)?[/-]:
3947
mode: ContinuousDelivery
4048
tag: beta
4149
increment: Patch
4250
prevent-increment-of-merged-branch-version: false
4351
track-merge-target: false
52+
is-develop: false
53+
is-release-branch: false
4454
support[/-]:
4555
mode: ContinuousDelivery
4656
tag: ''
4757
increment: Patch
4858
prevent-increment-of-merged-branch-version: true
4959
track-merge-target: false
60+
is-develop: false
61+
is-release-branch: false
5062
dev(elop)?(ment)?$:
5163
mode: ContinuousDeployment
52-
tag: unstable
64+
tag: alpha
5365
increment: Minor
5466
prevent-increment-of-merged-branch-version: false
5567
track-merge-target: true
68+
is-develop: true
69+
is-release-branch: false
5670
ignore:
5771
sha: []

0 commit comments

Comments
 (0)