Skip to content

Conversation

Copy link

Copilot AI commented Jul 18, 2025

This PR updates GitVersion and configures it to work with GitFlow workflow as requested.

Changes Made

1. Updated GitVersion Tool

  • Updated GitVersion.Tool from version 5.12.0 to 6.3.0 (latest version)
  • This resolves compatibility issues and provides access to the latest features

2. Configured GitFlow Workflow

Updated GitVersion.yml with proper GitFlow branch configuration:

  • main branch: Production releases, no label, patch increment
  • develop branch: Development with "alpha" label, minor increment
  • feature/ branches*: Feature development with branch name as label, inherit increment
  • release/ branches*: Release candidates with "beta" label, no increment
  • hotfix/ branches*: Hotfix releases with "beta" label, patch increment
  • support/ branches*: Support releases, no label, patch increment

3. Validation

  • GitVersion now works correctly with the repository structure
  • Version calculation is accurate for different branch types:
    • main branch: 0.5.7 (from existing tag)
    • develop branch: 0.6.0-alpha.X (minor increment with alpha label)
    • Feature branches: X.Y.Z-feature-name.N (with branch name as label)
  • GitHub Actions workflow remains compatible with the new configuration
  • All existing build and deployment processes continue to work

Before/After

Before:

mode: ContinuousDeployment
branches: {}

After:

next-version: 1.0.0
branches:
  main:
    regex: ^main$
    mode: ContinuousDeployment
    label: ''
    increment: Patch
  develop:
    regex: ^dev(elop)?(ment)?$
    mode: ContinuousDeployment
    label: alpha
    increment: Minor
  # ... additional GitFlow branches

The configuration follows GitFlow best practices and provides proper semantic versioning for different branch types while maintaining compatibility with the existing GitHub Actions workflow.

Fixes #3.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@AGiorgetti AGiorgetti marked this pull request as ready for review July 18, 2025 09:58
AGiorgetti and others added 4 commits July 18, 2025 09:59
The changelog has been revised to include the addition of support for .NET 8.0 and .NET 9.0, which expands the previous support that was limited to netstandard2.0. This update is now documented under the vNext section.
Copilot AI changed the title [WIP] Update GitVersion and its configuration to use GitFlow workflow Update GitVersion to 6.3.0 and configure for GitFlow workflow Jul 18, 2025
Copilot AI requested a review from AGiorgetti July 18, 2025 10:02
Copilot finished work on behalf of AGiorgetti July 18, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update GitVersion and its configuration to use GitFlow workflow

2 participants