Skip to content

Add updateWixVersionFile input to GitVersion execute task and action#2027

Merged
arturcic merged 3 commits intomainfrom
copilot/add-updatewixversionfile-parameter
Apr 7, 2026
Merged

Add updateWixVersionFile input to GitVersion execute task and action#2027
arturcic merged 3 commits intomainfrom
copilot/add-updatewixversionfile-parameter

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

The GitVersion CLI exposes /updatewixversionfile but neither the Azure DevOps task nor the GitHub Action had a corresponding input to pass it through.

Changes

  • Model/Settings/Tool (models.ts, settings.ts, tool.ts): Added updateWixVersionFile: boolean to ExecuteSettings, wired up input reading, and appended /updatewixversionfile to the CLI args when enabled
  • Azure DevOps (dist/azure/gitversion/execute/task.json): New boolean input updateWixVersionFile
  • GitHub Action (gitversion/execute/action.yml): New boolean input updateWixVersionFile
  • Docs (docs/examples/azure|github/gitversion/execute.md): Input listed in the inputs table; new example added for each platform
  • Tests (tool.spec.ts): Asserts /updatewixversionfile is correctly appended

Usage

Azure DevOps:

- task: gitversion-execute@4
  inputs:
    updateWixVersionFile: true

GitHub Actions:

- uses: gittools/actions/gitversion/execute@v4
  with:
    updateWixVersionFile: true

Copilot AI linked an issue Apr 7, 2026 that may be closed by this pull request
2 tasks
Copilot AI changed the title [WIP] Add updatewixversionfile parameter to Azure DevOps task Add updateWixVersionFile input to GitVersion execute task and action Apr 7, 2026
Copilot AI requested a review from arturcic April 7, 2026 11:15
Copy link
Copy Markdown
Member

@arturcic arturcic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the settings.spec.ts, needs to be added as well

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 7, 2026

check the settings.spec.ts, needs to be added as well

Added updateWixVersionFile: true to the ExecuteSettings object in settings.spec.ts in b6a6d0d.

Copilot AI requested a review from arturcic April 7, 2026 11:44
@arturcic arturcic marked this pull request as ready for review April 7, 2026 11:50
Copilot AI review requested due to automatic review settings April 7, 2026 11:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ExecuteSettings with updateWixVersionFile and read the new input in the settings provider.
  • Append /updatewixversionfile to 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.

@arturcic arturcic enabled auto-merge April 7, 2026 11:59
@arturcic
Copy link
Copy Markdown
Member

arturcic commented Apr 7, 2026

@Mergifyio queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 7, 2026

Merge Queue Status

  • 🟠 Waiting for queue conditions
  • ⏳ Enter queue
  • ⏳ Run checks
  • ⏳ Merge
Required conditions to enter a queue
  • -closed [📌 queue requirement]
  • any of [🔀 queue conditions]:
    • all of [📌 queue conditions of queue rule default]:
      • branch-protection-review-decision = APPROVED [🛡 GitHub repository ruleset rule main branch rule]
      • #approved-reviews-by >= 1 [🛡 GitHub repository ruleset rule main branch rule]
      • #changes-requested-reviews-by = 0 [🛡 GitHub repository ruleset rule main branch rule]
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = actions.ci
        • check-neutral = actions.ci
        • check-skipped = actions.ci
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = actions.ci (build macos-15)
        • check-neutral = actions.ci (build macos-15)
        • check-skipped = actions.ci (build macos-15)
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = actions.ci (build ubuntu-24.04)
        • check-neutral = actions.ci (build ubuntu-24.04)
        • check-skipped = actions.ci (build ubuntu-24.04)
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = actions.ci (build windows-2025)
        • check-neutral = actions.ci (build windows-2025)
        • check-skipped = actions.ci (build windows-2025)
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = build
        • check-neutral = build
        • check-skipped = build
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = build (macos-26)
        • check-neutral = build (macos-26)
        • check-skipped = build (macos-26)
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = build (ubuntu-24.04)
        • check-neutral = build (ubuntu-24.04)
        • check-skipped = build (ubuntu-24.04)
      • any of [🛡 GitHub repository ruleset rule main branch rule]:
        • check-success = build (windows-2025-vs2026)
        • check-neutral = build (windows-2025-vs2026)
        • check-skipped = build (windows-2025-vs2026)
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of [📌 queue -> configuration change requirements]:
    • -mergify-configuration-changed
    • check-success = Configuration changed
  • any of [📌 queue requirement]:
    • check-neutral = Mergify Merge Protections
    • check-skipped = Mergify Merge Protections
    • check-success = Mergify Merge Protections

@arturcic arturcic force-pushed the copilot/add-updatewixversionfile-parameter branch from be9122d to 47aa0a9 Compare April 7, 2026 12:27
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

@arturcic arturcic self-requested a review April 7, 2026 12:33
@arturcic
Copy link
Copy Markdown
Member

arturcic commented Apr 7, 2026

@Mergifyio refresh

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 7, 2026

refresh

✅ Pull request refreshed

@arturcic arturcic disabled auto-merge April 7, 2026 12:39
@arturcic arturcic merged commit 1d1d12a into main Apr 7, 2026
20 checks passed
@arturcic arturcic deleted the copilot/add-updatewixversionfile-parameter branch April 7, 2026 12:39
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 7, 2026

Thank you @Copilot for your contribution!

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.

[ISSUE]: Add /updatewixversionfile to Azure DevOps task

3 participants