Repository navigation
Description
Summary
Restructure GitVersion configuration into calculation and output sections, add POSIX migration tooling, and provide a one-release fallback for the legacy flat configuration.
This umbrella is implemented through #5132, #5133, and #5134. The cross-feature release matrix and selector lifecycle are governed by #5135.
Progress
- Implement versioned calculation and output configuration #5132 — Implement versioned calculation and output configuration (merged in Implement versioned calculation and output configuration #5158).
- Add POSIX configuration migration and legacy-format warnings #5133 — Add configuration migration and legacy-format warnings (merged in Add POSIX configuration migration and legacy-format warnings #5159).
- Publish v7 configuration schemas and migration guidance #5134 — Publish configuration schemas and migration guidance (merged in Document v7 configuration layout and migration #5160).
- Configuration foundation completed by Implement versioned calculation and output configuration #5158, Add POSIX configuration migration and legacy-format warnings #5159 and Document v7 configuration layout and migration #5160.
Follow-up release work is outside this completed umbrella: #5135 owns v7.0 selector/default alignment; #5188 owns v7.1 parser/configuration runtime removal; #5040 owns v7.1 backend removal; #5136 owns v8 selector removal.
Proposed structure
workflow: GitFlow/v1
calculation:
tag-prefix: '[vV]?'
semantic-version-format: Strict
strategies: [ConfiguredNextVersion, MergeMessage, TaggedCommit]
ignore:
sha: []
paths: []
branches:
main:
regex: ^master$|^main$
mode: ContinuousDelivery
label: ''
increment: Patch
output:
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
assembly-informational-format: '{InformationalVersion}'
commit-date-format: yyyy-MM-dd
tag-pre-release-weight: 60000
update-build-number: true
branches:
main:
custom-version-format: '{SemVer}'
pre-release-weight: 55000Setting ownership
workflow is a root-level preset selector for the whole configuration. Templates supply defaults to both calculation and output; user configuration overrides the preset, and runtime overrides take precedence. A workflow-only document is valid in both v6 and v7.
calculation contains semantic-version and Git-history inputs:
next-version,tag-prefix, andversion-in-branch-pattern- version-bump and no-bump message patterns
merge-message-formats,semantic-version-format,strategies, andignore- calculation branch defaults and
calculation.branches:mode,label,increment,prevent-increment, merge tracking, commit-message incrementing, regex/source relationships, and branch classification
label remains a calculation setting because it changes SemVer and FullSemVer.
output contains generated-variable and output-integration settings:
- assembly versioning schemes and formats
assembly-informational-format,commit-date-format,tag-pre-release-weight, andupdate-build-number- output branch defaults and
output.branches:custom-version-formatandpre-release-weight
Calculation and output entries for the same branch are merged logically. Output configuration may target a branch supplied by a built-in workflow without repeating its calculation configuration.
Configuration model and validation
- Represent both sections explicitly in the configuration model.
- Resolve v6 and v7 representations to equivalent effective runtime configuration during v7.0.
- Reject documents mixing flat and nested settings.
- Keep calculation consumers independent of output-only settings where practical.
- Update built-in workflows, builders, inheritance, serialization,
--show-config, overrides, caching, schemas, and public API baselines.
POSIX migration command
Add to the stable System.CommandLine parser:
gitversion config migrate
gitversion config migrate --config GitVersion.yml
gitversion config migrate --config GitVersion.yml --output GitVersion.v7.yml
gitversion config migrate --config GitVersion.yml --in-place
- Default input uses normal configuration discovery and default output is stdout.
--outputrefuses overwrite without--force;--in-placeexplicitly replaces the input; both are mutually exclusive.- Migration is deterministic and idempotent and preserves all configured values.
- Warn before in-place migration if comments cannot be preserved.
- Explicit input does not require repository discovery or normalization.
- The command exists only in the stable POSIX parser, not
LegacyArgumentParseror experimentalnew-cli. - A positional directory named
configuses the unambiguous--target-path configform.
Follow-up release matrix (tracked separately)
Use GITVERSION_CONFIGURATION_VERSION=v6|v7 as specified by #5135:
- v7.0 defaults to nested v7 configuration;
v6is an explicit temporary fallback. - v7.1 removes runtime support for flat v6 configuration.
v6produces an actionable error directing users togitversion config migrate. - Explicit
v7remains accepted as a no-op throughout v7.x. - Remove feature-selector environment variables #5136 removes the selector entirely in v8.
--show-config emits the selected format. In v7 mode, --override-config uses nested paths and rejects legacy paths with replacement guidance; v6 mode does the inverse.
Acceptance criteria
- Every current setting has an explicit calculation or output destination.
custom-version-formatandpre-release-weightwork as output defaults and underoutput.branches.- v6 and v7 configurations have calculation/output parity in v7.0.
- Nested v7 configuration and explicit v6 fallback are implemented; explicit v6 user-file loading warns. Cross-feature v7.0 default alignment is tracked by v7.0: default to v7 parser, nested configuration and managed Git #5135.
- v7.1 runtime removal is outside this completed scope and tracked by v7.1: remove legacy argument parser and v6 configuration runtime #5188; migration tooling remains available.
- Migration, overrides, workflows,
--show-config, caching, serialization, schemas, docs, and public APIs are tested and updated.
Activity
arturcic commentedon Aug 12, 2026
@asbjornu @HHobeck please have a look and tell me what do you think
arturcic commentedon Aug 12, 2026
Version-aware override validation
--override-configmust validate keys against the configuration version selected for the process before applying any override:Override 'tag-prefix' uses a legacy v6 configuration path. Use 'calculation.tag-prefix' in v7 mode.--override-configarguments: if any key belongs to the wrong configuration version, fail the invocation before calculation.calculation.branches.<name>, whilecustom-version-formatandpre-release-weightbelong underoutput.branches.<name>.gitversion config migratefor users who also need to migrate their configuration file.Legacy-configuration deprecation warning
Warn users at runtime when GitVersion loads a user-provided legacy flat configuration:
gitversion config migrate, and mentionGITVERSION_CONFIGURATION_VERSION=v7for validating the migrated file.config migrate, because reading legacy configuration is the purpose of that command.Suggested warning:
Additional acceptance criteria:
arturcic commentedon Aug 19, 2026
@asbjornu @HHobeck I need your opinion on this changes
github-actions commentedon Nov 17, 2026
🎉 This issue has been resolved in version 7.0.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀