Skip to content

Commit 0150527

Browse files
authored
Update GitVersion.yml with improved regex patterns (#2161)
1 parent e86a3d5 commit 0150527

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed

.github/workflows/code-analysis-built-module.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
shell: powershell
2626
run: |
2727
dotnet tool install --global GitVersion.Tool --version 5.*
28-
dotnet-gitversion
2928
- name: Run GitVersion
3029
shell: powershell
3130
run: |

.github/workflows/code-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
shell: powershell
2626
run: |
2727
dotnet tool install --global GitVersion.Tool --version 5.*
28-
dotnet-gitversion
2928
- name: Run GitVersion
3029
shell: powershell
3130
run: |

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ jobs:
205205
- name: Verify GitVersion
206206
shell: pwsh
207207
run: |
208-
Write-Host 'Running GitVersion to determine semantic version...'
209-
dotnet-gitversion
210208
Write-Host 'Running GitVersion to determine semantic version (parsing to PowerShell object)...'
211209
dotnet-gitversion | ConvertFrom-Json
212210

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8888

8989
### Changed
9090

91+
- SqlServerDsc
92+
- Updated GitVersion.yml feature branch regex pattern to use anchor `^f(eature(s)?)?[\/-]`
93+
for more precise branch name matching.
9194
- Refactored GitHub Copilot workflow setup to be module-agnostic via MODULE_NAME
9295
environment variable, includes full-history detection, uses idempotent .NET
9396
tool install, and adds Linux dependency handling ([issue #2127](https://github.com/dsccommunity/SqlServerDsc/issues/2127)).

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ branches:
1414
feature:
1515
tag: useBranchName
1616
increment: Minor
17-
regex: f(eature(s)?)?[\/-]
17+
regex: ^f(eature(s)?)?[\/-]
1818
source-branches: ['master']
1919
hotfix:
2020
tag: fix

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ stages:
3030
steps:
3131
- pwsh: |
3232
dotnet tool install --global GitVersion.Tool --version 5.*
33-
dotnet-gitversion
3433
$gitVersionObject = dotnet-gitversion | ConvertFrom-Json
3534
$gitVersionObject.PSObject.Properties.ForEach{
3635
Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."

0 commit comments

Comments
 (0)