Repository navigation
Closed
Milestone
Description
Parent: #5131
Follows the release-selector matrix defined by #5135.
Summary
Implement the nested calculation and output configuration model, with separate calculation/output branch sections and version-aware runtime selection.
Configuration structure
- Add explicit calculation and output configuration models.
- Keep
workflowat the document root: it selects one preset for both sections. Accept empty/workflow-only documents in either format; reject nested selectors and genuinely mixed layouts. - Generate the v7 schema with root
workflow,calculation, andoutput. - Move all settings according to the ownership defined by [Feature] Group configuration under calculation and output sections with migration support #5131.
- Split branch settings between
calculation.branchesandoutput.branches. - Put
custom-version-formatandpre-release-weightunder output defaults andoutput.branches. - Merge corresponding calculation/output branch entries into effective configuration.
- Allow output entries for branches supplied by built-in workflows.
Release selection
Implement GITVERSION_CONFIGURATION_VERSION=v6|v7 consistently across CLI, MSBuild, and other entry points:
- v7.0: unset/empty defaults to v7; explicit
v6enables the temporary flat-format fallback. - v7.1: remove v6 runtime loading;
v6produces an actionable migration error and explicitv7is accepted as a no-op. - Values are trimmed and case-insensitive; invalid values fail fast.
- Detect flat, nested, mixed, empty, and selected-format mismatches.
- Structure the compatibility validator for removal in v8 by Remove feature-selector environment variables #5136.
Configuration behavior
- Both formats resolve to equivalent effective configuration in v7.0.
- Convert built-in workflows and preserve workflow/user precedence.
- Update builders, inheritance, serialization,
--show-config, cache inputs, and public API baselines.
Version-aware --override-config
workflowis a root override path in both formats; rejectcalculation.workflowandoutput.workflowwith root-path guidance.- v7 paths include
calculation.tag-prefix,calculation.branches.main.increment,output.update-build-number, andoutput.branches.main.pre-release-weight. - v6 mode retains flat override paths.
- Reject paths from the wrong version with the correct replacement when known.
- Validate all overrides before applying any and never translate silently.
- Point users to
gitversion config migratewhere appropriate.
Acceptance criteria
- Every existing setting has the destination specified by [Feature] Group configuration under calculation and output sections with migration support #5131.
- v6/v7 parity, workflow merging, selectors, document detection, invalid values, and removal behavior are tested.
- Override validation is tested in both modes.
--show-config, caching, CLI, MSBuild, builders, serialization, and API baselines are updated.
Activity
github-actions commentedon Nov 17, 2026
🎉 This issue has been resolved in version 7.0.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀