Add updateWixVersionFile input to GitVersion execute task and action#2027
Add updateWixVersionFile input to GitVersion execute task and action#2027
updateWixVersionFile input to GitVersion execute task and action#2027Conversation
updateWixVersionFile input to GitVersion execute task and action
arturcic
left a comment
There was a problem hiding this comment.
check the settings.spec.ts, needs to be added as well
Added |
There was a problem hiding this comment.
Pull request overview
Adds a new updateWixVersionFile boolean input to both the Azure DevOps GitVersion Execute task and the GitHub Action, wiring it through to the GitVersion CLI as /updatewixversionfile.
Changes:
- Extend
ExecuteSettingswithupdateWixVersionFileand read the new input in the settings provider. - Append
/updatewixversionfileto GitVersion execute CLI args when enabled. - Update platform definitions (ADO task JSON, GitHub action.yml), docs, and tests; regenerate dist artifacts.
Reviewed changes
Copilot reviewed 8 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/tools/gitversion/tool.ts | Adds /updatewixversionfile argument when updateWixVersionFile is true. |
| src/tools/gitversion/settings.ts | Reads updateWixVersionFile from inputs and includes it in execute settings. |
| src/tools/gitversion/models.ts | Adds updateWixVersionFile: boolean to ExecuteSettings. |
| src/tests/tools/gitversion/tool.spec.ts | Adds coverage asserting the new CLI arg is appended. |
| src/tests/tools/gitversion/settings.spec.ts | Updates expected settings to include updateWixVersionFile. |
| gitversion/execute/action.yml | Adds updateWixVersionFile as a new action input with default false. |
| dist/azure/gitversion/execute/task.json | Adds updateWixVersionFile boolean input to the ADO task definition. |
| docs/examples/github/gitversion/execute.md | Documents the new input and adds a GitHub Actions usage example. |
| docs/examples/azure/gitversion/execute.md | Documents the new input and adds an Azure Pipelines usage example. |
| dist/tools/libs/gitversion.mjs | Regenerated dist bundle reflecting new settings + argument. |
| dist/tools/libs/gitversion.mjs.map | Regenerated source map reflecting new settings + argument. |
| package-lock.json | Lockfile changes reflecting dependency tree update. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@Mergifyio queue |
Merge Queue Status
Required conditions to enter a queue
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
be9122d to
47aa0a9
Compare
|
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
Thank you @Copilot for your contribution! |



The GitVersion CLI exposes
/updatewixversionfilebut neither the Azure DevOps task nor the GitHub Action had a corresponding input to pass it through.Changes
models.ts,settings.ts,tool.ts): AddedupdateWixVersionFile: booleantoExecuteSettings, wired up input reading, and appended/updatewixversionfileto the CLI args when enableddist/azure/gitversion/execute/task.json): New boolean inputupdateWixVersionFilegitversion/execute/action.yml): New boolean inputupdateWixVersionFiledocs/examples/azure|github/gitversion/execute.md): Input listed in the inputs table; new example added for each platformtool.spec.ts): Asserts/updatewixversionfileis correctly appendedUsage
Azure DevOps:
GitHub Actions: