From a8aabba00310dd34b275eabc6d47f258bd593aa4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 05:59:36 +0000 Subject: [PATCH 1/3] Initial plan From b5314f0c1dd0bce79a385e17b378bd4756f8f754 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Sep 2025 06:04:24 +0000 Subject: [PATCH 2/3] Update GitVersion.yml with improved regex patterns for feature and hotfix branches Co-authored-by: johlju <7189721+johlju@users.noreply.github.com> --- CHANGELOG.md | 3 +++ GitVersion.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb961f34dc..c46c16edeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- SqlServerDsc + - Updated GitVersion.yml feature branch regex pattern to use anchor `^f(eature(s)?)?[\/-]` + for more precise branch name matching. - Refactored GitHub Copilot workflow setup to be module-agnostic via MODULE_NAME environment variable, includes full-history detection, uses idempotent .NET tool install, and adds Linux dependency handling ([issue #2127](https://github.com/dsccommunity/SqlServerDsc/issues/2127)). diff --git a/GitVersion.yml b/GitVersion.yml index c06e29eafe..d277c2a34d 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -14,7 +14,7 @@ branches: feature: tag: useBranchName increment: Minor - regex: f(eature(s)?)?[\/-] + regex: ^f(eature(s)?)?[\/-] source-branches: ['master'] hotfix: tag: fix From 05ceea6fa6999ff689378a37f340f7f5917c528c Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Sat, 6 Sep 2025 14:02:56 +0200 Subject: [PATCH 3/3] Fix pipelines --- .github/workflows/code-analysis-built-module.yml | 1 - .github/workflows/code-analysis.yml | 1 - .github/workflows/copilot-setup-steps.yml | 2 -- azure-pipelines.yml | 1 - 4 files changed, 5 deletions(-) diff --git a/.github/workflows/code-analysis-built-module.yml b/.github/workflows/code-analysis-built-module.yml index 4cef1371dc..2ca38ceb94 100644 --- a/.github/workflows/code-analysis-built-module.yml +++ b/.github/workflows/code-analysis-built-module.yml @@ -25,7 +25,6 @@ jobs: shell: powershell run: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion - name: Run GitVersion shell: powershell run: | diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index 67f97ca4b3..74ca691989 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -25,7 +25,6 @@ jobs: shell: powershell run: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion - name: Run GitVersion shell: powershell run: | diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index c28325f8af..63f5f44c0a 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -205,8 +205,6 @@ jobs: - name: Verify GitVersion shell: pwsh run: | - Write-Host 'Running GitVersion to determine semantic version...' - dotnet-gitversion Write-Host 'Running GitVersion to determine semantic version (parsing to PowerShell object)...' dotnet-gitversion | ConvertFrom-Json diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 221d53f4a1..784c393968 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,7 +30,6 @@ stages: steps: - pwsh: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion $gitVersionObject = dotnet-gitversion | ConvertFrom-Json $gitVersionObject.PSObject.Properties.ForEach{ Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."