Skip to content

Update gittools/actions to v4.4.2 and GitVersion to 6.x#25

Merged
bastianeicher merged 3 commits intomainfrom
copilot/update-gitversion-latest
Apr 3, 2026
Merged

Update gittools/actions to v4.4.2 and GitVersion to 6.x#25
bastianeicher merged 3 commits intomainfrom
copilot/update-gitversion-latest

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

  • Update build.yml: bump gittools/actions/gitversion/setup and execute from v0.13.6 to v4.4.2
  • Update build.yml: bump versionSpec from 5.12.x to 6.7.x
  • Update GitVersion.yml: rename taglabel for all branch configs (GitVersion 6.x renamed this property)
  • Update GitVersion.yml: capitalize increment: patchincrement: Patch (GitVersion 6.x uses PascalCase)
  • Fix: rename mastermain (built-in v6 key matching ^master$|^main$, no regex needed)
  • Fix: add mode: ContinuousDelivery to main branch to restore beta pre-release label behavior (in v6, ContinuousDeployment on a main branch produces clean semver without labels)

Copilot AI changed the title [WIP] Update to latest version of gittools/actions/gitversion Update gittools/actions to v4.4.2 and GitVersion to 6.x Apr 1, 2026
Copilot AI requested a review from bastianeicher April 1, 2026 14:47
@bastianeicher
Copy link
Copy Markdown
Member

@copilot gitversion is failing with:

Branch configuration 'master' is missing required configuration 'regex'

Please fix this and verify your fix by running gitversion.

…ion.yml for v6 compatibility

Agent-Logs-Url: https://github.com/TypedRest/TypedRest-Java/sessions/fabbee0a-be12-47d0-b364-9599cc8d7c4b

Co-authored-by: bastianeicher <414366+bastianeicher@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot gitversion is failing with:

...

Fixed in 401fb8d. Two issues were addressed:

  1. master is not a built-in key in GitVersion 6.x — the v6 built-in key is main (with default regex ^master$|^main$), so non-built-in keys like master require an explicit regex. Renaming to main resolves the error without needing a regex.

  2. ContinuousDeployment mode on a main branch in v6 produces clean semver without pre-release labels — to preserve the beta label behavior from v5, mode: ContinuousDelivery is now explicitly set on the main branch. Verified locally with GitVersion 6.7.0:

    • master branch: 1.0.1-beta.1, 1.0.1-beta.2, … ✓
    • develop branch: 1.0.1-alpha.1, 1.0.1-alpha.2, … ✓

@bastianeicher bastianeicher marked this pull request as ready for review April 3, 2026 20:12
@bastianeicher bastianeicher merged commit 227e803 into main Apr 3, 2026
2 checks passed
@bastianeicher bastianeicher deleted the copilot/update-gitversion-latest branch April 3, 2026 20:14
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.

2 participants