Skip to content

65 update module#69

Merged
visschersm merged 11 commits into
mainfrom
65-update-module
Oct 27, 2025
Merged

65 update module#69
visschersm merged 11 commits into
mainfrom
65-update-module

Conversation

@visschersm
Copy link
Copy Markdown
Contributor

No description provided.

@visschersm visschersm requested a review from Copilot October 27, 2025 00:51
Copy link
Copy Markdown

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

This PR refactors the Update-QuickPath module to support updating from both the PowerShell Gallery and local builds. The main changes include adding a -FromGallery parameter to explicitly update from the gallery, splitting the update logic into separate functions, and improving the module version retrieval logic.

  • Refactored Update-QuickPath to support both gallery and build-based updates with a -FromGallery switch parameter
  • Split update logic into Update-QuickPathFromGallery and Update-QuickPathFromBuild functions
  • Improved Get-MyModuleVersion to reliably retrieve version from loaded module, command, or manifest
  • Updated version from 0.14.3 to 0.16.19

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
private/Update-QuickPath.ps1 Refactored to add parameter support and split into separate gallery and build update functions
tests/Update-QuickPath.Tests.ps1 Updated tests to validate new -FromGallery parameter and mock new function calls
quickpath.build.ps1 Added new Update task and sourced Update-QuickPath.ps1 script
private/Get-MyModuleVersion.ps1 Rewritten to check loaded module, command module, and manifest fallback
private/Get-Commands.ps1 Changed version command from inline script block to function reference
quickpath.psd1 Bumped module version to 0.16.19

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread private/Update-QuickPath.ps1
Comment thread private/Get-MyModuleVersion.ps1 Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 89.58333% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
quickpath.build.ps1 0.00% 5 Missing ⚠️
Files with missing lines Coverage Δ
private/Get-Commands.ps1 100.00% <100.00%> (ø)
private/Get-MyModuleVersion.ps1 100.00% <100.00%> (+100.00%) ⬆️
private/Update-QuickPath.ps1 100.00% <100.00%> (ø)
quickpath.build.ps1 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@visschersm visschersm requested a review from Copilot October 27, 2025 01:27
Copy link
Copy Markdown

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

Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@visschersm visschersm merged commit 74b4f3c into main Oct 27, 2025
2 checks passed
@visschersm visschersm deleted the 65-update-module branch October 27, 2025 01:42
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