Skip to content

Updates - #952

Merged
aaronparker merged 7 commits into
mainfrom
updates
Nov 17, 2026
Merged

aaronparker merged 7 commits into
mainfrom
updates

Conversation

@aaronparker

Copy link
Copy Markdown
Collaborator

This pull request introduces a new utility function for updating object properties, adds comprehensive tests for it, and makes minor improvements to existing scripts for consistency and correctness.

Update:

  • Added the Set-ObjectProperty function to update a property on a PowerShell object when its value matches an expected value, with support for -WhatIf and -Confirm parameters.
  • In Resolve-MicrosoftFwLink.ps1, normalized the Date field by converting it to a DateTime object using ConvertTo-DateTime.
  • In Get-InstallerType.ps1, added a new installer type hybridCRT to the recognized types.
  • In Get-SourceForgeRepoRelease.ps1, reordered the creation of the output object to group related fields together for clarity.

Testing:

  • Added Set-ObjectProperty unit tests to verify correct behavior, including handling of -WhatIf and confirmation suppression scenarios.

Normalize the Date property returned by Resolve-MicrosoftFwLink so it uses the module's date conversion helper.
Place Size and Md5 before Architecture and Type in the release output object.
Add Set-ObjectProperty to update properties in place when their values match, while returning objects unchanged on a mismatch. Support -WhatIf and -Confirm, and cover dry runs and selective pipeline updates with Pester tests.
@aaronparker aaronparker self-assigned this Nov 17, 2026
@aaronparker aaronparker added the enhancement New feature or request label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Test Results

    6 files  2 400 suites   9m 2s ⏱️
2 619 tests 2 574 ✅  45 💤 0 ❌
9 953 runs  9 743 ✅ 210 💤 0 ❌

Results for commit 4223518.

♻️ This comment has been updated with latest results.

Use the resolved date directly instead of passing it through ConvertTo-DateTime. Suppress PSUseCompatibleCommands in the resolver tests, which run on PowerShell 7.4 or later.
Mark shared tests as targeting PowerShell 7.4+ to silence `PSUseCompatibleCommands` warnings. Add the missing test-file metadata to the GitHub release tests.
@aaronparker
aaronparker merged commit 2f13108 into main Nov 17, 2026
12 checks passed
@aaronparker
aaronparker deleted the updates branch November 17, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant