Skip to content

Refactor download functions for consistency - #40

Merged
OSDeploy merged 2 commits into
mainfrom
felidae
Oct 5, 2026
Merged

OSDeploy merged 2 commits into
mainfrom
felidae

Conversation

@OSDeploy

@OSDeploy OSDeploy commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Unify download functions across scripts by consolidating the OSD and OSDCloud download helpers into a single function. This change improves code maintainability and usage consistency throughout the project.

Copilot AI balanced review requested due to automatic review settings October 5, 2026 13:58
@OSDeploy

OSDeploy commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The disk helper misclassifies SCM/UFS disks and cannot apply explicit false-valued filters.

Review effort: Balanced
Findings: None

What changed in this PR

Consolidates download operations under Invoke-RecastOSDDownloadFile and updates internal callers.

Changes:

  • Renames the shared download helper and safely disposes WebClient.
  • Migrates OS, driver-pack, and USB-cache downloads.
  • Adds a separate deployment-disk enumeration helper.
File Description
CHANGELOG.md Documents download-helper consolidation.
OSDCloud/​private/​core/​Invoke-RecastOSDDownloadFile.ps1 Renames and documents the shared helper.
OSDCloud/​private/​core-cache/​Update-RecastOSDCloudUSBCache.ps1 Migrates USB-cache downloads.
OSDCloud/​private/​core-disk/​Get-DeploymentDiskObject.ps1 Adds disk discovery and filtering.
OSDCloud/​private/​steps/​4-install/​step-install-downloadwindowsimage.ps1 Migrates Windows image downloads.
OSDCloud/​private/​steps/​5-drivers/​step-Save-WindowsDriver-DriverPack.ps1 Migrates driver-pack downloads.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@OSDeploy

OSDeploy commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: OSDeploy <12970006+OSDeploy@users.noreply.github.com>

Copilot AI commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the conflict and merged main into the PR branch in commit dc41bdd.

Copilot AI commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

The merge conflicts are resolved in merge commit dc41bdd; GitHub currently reports the PR as mergeable.

@OSDeploy
OSDeploy merged commit 7b8f7a3 into main Oct 5, 2026
1 check passed
@OSDeploy
OSDeploy deleted the felidae branch October 6, 2026 13:16
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.

3 participants