Skip to content

Commit c5e4c46

Browse files
authored
Merge pull request #4032 from HHobeck/feature/Rename-TrunkBased-Version-Strategy-to-Mainline
Rename TrunkBased Version Strategy to Mainline
2 parents bb6435a + 5460bb5 commit c5e4c46

File tree

141 files changed

+2956
-3003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+2956
-3003
lines changed

BREAKING_CHANGES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
* The `BranchPrefixToTrim` configuration property has been removed. `RegularExpression` is now used to capture named groups instead.
4040
* Default `RegularExpression` for feature branches is changed from `^features?[/-]` to `^features?[/-](?<BranchName>.+)` to support using `{BranchName}` out-of-the-box
4141
* Default `RegularExpression` for unknown branches is changed from `.*` to `(?<BranchName>.+)` to support using `{BranchName}` out-of-the-box
42-
* The `Mainline` mode and the related implementation has been removed completely. The new `TrunkBased` version strategy should be used instead.
43-
* The `TrunkBased` workflow doesn't support downgrading the increment for calculating the next version. This is the case if e.g. a bump messages has been defined which is lower than the branch increment.
42+
* The `Mainline` mode and the related implementation has been removed completely. The new `Mainline` version strategy should be used instead.
43+
* The `Mainline` version strategy doesn't support downgrading the increment for calculating the next version. This is the case if e.g. a bump messages has been defined which is lower than the branch increment.
4444
* The branch related property `is-mainline` in the configuration system has been renamed to `is-main-branch`
4545
* The versioning mode has been renamed to deployment mode and consists of following values:
4646
* ManualDeployment (previously ContinuousDelivery)
@@ -52,7 +52,7 @@
5252
* TaggedCommit
5353
* TrackReleaseBranches
5454
* VersionInBranchName
55-
* TrunkBased
55+
* Mainline
5656
* The initialization wizard has been removed.
5757
* On the `develop`, `release` and `hotfix` branch the introduced branch related property `prevent-increment.when-current-commit-tagged` has been set to `false` to get the incremented instead of the tagged semantic version.
5858
* When setting the "ignore commits before" parameter to a future value, an exception will occur if no commits are found on the current branch. This behavior mimics that of an empty repository.

docs/input/docs/reference/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following supported workflow configurations are available in GitVersion and
3838
- GitFlow (GitFlow/v1)
3939
- GitHubFlow (GitHubFlow/v1)
4040

41-
Example of using a `TrunkBased` workflow with a different `tag-prefix`:
41+
Example of using a `GitHubFlow` workflow with a different `tag-prefix`:
4242

4343
```yaml
4444
workflow: GitHubFlow/v1

schemas/6.0/GitVersion.configuration.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@
177177
"type": "string"
178178
},
179179
"strategies": {
180-
"description": "Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'TrunkBased'.",
180+
"description": "Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'Mainline'.",
181181
"type": "array",
182182
"items": {
183-
"description": "Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'TrunkBased'.",
183+
"description": "Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'Mainline'.",
184184
"enum": [
185185
"None",
186186
"Fallback",
@@ -189,7 +189,7 @@
189189
"TaggedCommit",
190190
"TrackReleaseBranches",
191191
"VersionInBranchName",
192-
"TrunkBased"
192+
"Mainline"
193193
]
194194
}
195195
},

src/GitVersion.Configuration/Builders/TrunkBasedConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private TrunkBasedConfigurationBuilder()
2020
SemanticVersionFormat = ConfigurationConstants.DefaultSemanticVersionFormat,
2121
VersionStrategies = [
2222
VersionStrategies.ConfiguredNextVersion,
23-
VersionStrategies.TrunkBased
23+
VersionStrategies.Mainline
2424
],
2525
TagPrefix = ConfigurationConstants.DefaultTagPrefix,
2626
VersionInBranchPattern = ConfigurationConstants.DefaultVersionInBranchPattern,

src/GitVersion.Configuration/GitVersionConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public string? NextVersion
129129
? VersionCalculation.VersionStrategies.None : VersionStrategies.Aggregate((one, another) => one | another);
130130

131131
[JsonPropertyName("strategies")]
132-
[JsonPropertyDescription($"Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'TrunkBased'.")]
132+
[JsonPropertyDescription($"Specifies which version strategies (one or more) will be used to determine the next version. Following values are available: 'ConfiguredNextVersion', 'MergeMessage', 'TaggedCommit', 'TrackReleaseBranches', 'VersionInBranchName' and 'Mainline'.")]
133133
public VersionStrategies[] VersionStrategies { get; internal set; } = [];
134134

135135
[JsonIgnore]

src/GitVersion.Configuration/Workflows/TrunkBased/v1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ merge-message-formats: {}
1212
update-build-number: true
1313
semantic-version-format: Strict
1414
strategies:
15-
- TrunkBased
15+
- Mainline
1616
- ConfiguredNextVersion
1717
branches:
1818
main:

0 commit comments

Comments
 (0)