Skip to content

Commit b4ee149

Browse files
authored
Merge branch 'main' into patch-1
2 parents 64fe2e3 + 205a530 commit b4ee149

File tree

80 files changed

+7345
-2889
lines changed

Some content is hidden

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

80 files changed

+7345
-2889
lines changed

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
6161
dotnet_style_prefer_simplified_interpolation = true:suggestion
6262

6363
# Dispose rules (CA2000 and CA2213) ported to IDE analyzers. We already execute the CA rules on the repo, so disable the IDE ones.
64+
dotnet_diagnostic.IDE0005.severity = none
6465
dotnet_diagnostic.IDE0067.severity = none
6566
dotnet_diagnostic.IDE0068.severity = none
6667
dotnet_diagnostic.IDE0069.severity = none
6768
dotnet_diagnostic.CA1016.severity = none
68-
6969
#### C# Coding Conventions ####
7070

7171
# Prefer "var" everywhere
@@ -188,3 +188,5 @@ dotnet_diagnostic.CA1816.severity = warning
188188

189189
# IDE0005: Using directive is unnecessary.
190190
dotnet_diagnostic.IDE0005.severity = warning
191+
192+
[resharper_]xml_space_before_self_closing = true

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ updates:
4343
- "dependencies"
4444
commit-message:
4545
prefix: "(docs deps)"
46+
groups:
47+
remark:
48+
patterns:
49+
- "remark*"
4650
directory: "/"
4751
schedule:
4852
interval: monthly

BREAKING_CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
* A new configuration property with name `version-in-branch-pattern` has been introduced. This setting only applies on branches where the option `is-release-branch` is set to `true`. Please notice that the branch name needs to be defined after the version number by default (instead of `support/lts-2.0.0` please name the branch like `support/2.0.0-lts`).
2929
* The `is-release-branch` property of the `hotfix` branch setting has been changed from `false` to `true`. If present the hotfix number will be considered now by default.
3030
* In the GitHub and the Git Flow workflows the `label` property is by default set to an empty string on the `main` branch. This yields to a pre-release version on `main` with an empty tag. Instead of for instance `1.0.1+46` GitVersion generates the full semantic version `1.0.1-46` instead. This behavior can be changed to generate only stable versions (no pre-release version) with setting the label to `null` (Please keep in mind that the `label` property on root needs to be set to `null` as well, otherwise the fallback applies). This change is caused by issue #2347.
31+
* The `useBranchName` magic string has been removed. Instead use `{BranchName}` for `label`.
32+
* The `BranchPrefixToTrim` configuration property has been removed. `RegularExpression` is now used to capture named groups instead.
33+
* Default `RegularExpression` for feature branches is changed from `^features?[/-]` to `^features?[/-](?<BranchName>.+)` to support using `{BranchName}` out-of-the-box
34+
* Default `RegularExpression` for unknown branches is changed from `.*` to `(?<BranchName>.*)` to support using `{BranchName}` out-of-the-box
3135
3236
## v5.0.0
3337

build/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
<PackageVersion Include="Cake.Docker" Version="1.2.2" />
1414
<PackageVersion Include="Cake.Git" Version="3.0.0" />
1515
<PackageVersion Include="Cake.Json" Version="7.0.1" />
16-
<PackageVersion Include="xunit.assert" Version="2.5.0" />
16+
<PackageVersion Include="xunit.assert" Version="2.5.1" />
1717
</ItemGroup>
1818
</Project>

docs/input/docs/reference/configuration.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ values, but here they are if you need to:
484484
### regex
485485

486486
This is the regex which is used to match the current branch to the correct
487-
branch configuration.
487+
branch configuration.
488+
489+
[Named groups](https://learn.microsoft.com/en-us/dotnet/standard/base-types/grouping-constructs-in-regular-expressions#named-matched-subexpressions) can be used to dynamically label pre-releases based on the branch name, or parts of it. See [Label](#label) for more details and examples.
488490

489491
### source-branches
490492

@@ -572,11 +574,13 @@ Same as for the [global configuration, explained above](#mode).
572574

573575
### label
574576

575-
The pre release label to use for this branch. Use the value `useBranchName` to use
576-
the branch name instead. For example `feature/foo` would become a pre-release
577-
label of `foo` with this value. Use the value `{BranchName}` as a placeholder to
578-
insert the branch name. For example `feature/foo` would become a pre-release label
579-
of `alpha.foo` with the value of `alpha.{BranchName}`.
577+
The pre-release label to use for this branch. Use the value `{BranchName}` as a placeholder to
578+
insert the value of the named group `BranchName` from the [regular expression](#regex).
579+
580+
For example: branch `feature/foo` would become a pre-release label
581+
of `alpha.foo` with `label: 'alpha.{BranchName}'` and `regex: '^features?[/-](?<BranchName>.+)'`.
582+
583+
Another example: branch `features/sc-12345/some-description` would become a pre-release label of `sc-12345` with `label: '{StoryNo}'` and `regex: '^features?[/-](?<StoryNo>sc-\d+)[-/].+'`.
580584

581585
**Note:** To clear a default use an empty string: `label: ''`
582586

new-cli/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
1010
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
1111
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
12-
<PackageVersion Include="Polly" Version="7.2.4" />
12+
<PackageVersion Include="Polly" Version="8.0.0" />
1313
<PackageVersion Include="Scriban" Version="5.9.0" />
1414
<PackageVersion Include="Serilog.Extensions.Logging" Version="7.0.0" />
1515
<PackageVersion Include="Serilog.Sinks.Console" Version="4.1.0" />

0 commit comments

Comments
 (0)