Repository navigation
Updates - #952
Merged
Merged
Updates#952
Conversation
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.
Test Results 6 files 2 400 suites 9m 2s ⏱️ 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Set-ObjectPropertyfunction to update a property on a PowerShell object when its value matches an expected value, with support for-WhatIfand-Confirmparameters.Resolve-MicrosoftFwLink.ps1, normalized theDatefield by converting it to a DateTime object usingConvertTo-DateTime.Get-InstallerType.ps1, added a new installer typehybridCRTto the recognized types.Get-SourceForgeRepoRelease.ps1, reordered the creation of the output object to group related fields together for clarity.Testing:
Set-ObjectPropertyunit tests to verify correct behavior, including handling of-WhatIfand confirmation suppression scenarios.