[release/v7.4.15] Add comment-based help documentation to build.psm1 functions by daxian-dbw · Pull Request #27227 · PowerShell/PowerShell · GitHub
Skip to content

[release/v7.4.15] Add comment-based help documentation to build.psm1 functions#27227

Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.4.15from
daxian-dbw:backport/release/v7.4.15/27122-1216cb7be
Apr 9, 2026
Merged

[release/v7.4.15] Add comment-based help documentation to build.psm1 functions#27227
daxian-dbw merged 1 commit intoPowerShell:release/v7.4.15from
daxian-dbw:backport/release/v7.4.15/27122-1216cb7be

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #27122 to release/v7.4.15

Triggered by @daxian-dbw on behalf of @powercode

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Adds comment-based help to build.psm1 functions on release/v7.4.15 so build and release tooling remains documented and easier to maintain.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

This backport updates help text only in build.psm1. The cherry-pick applied cleanly to release/v7.4.15 with no code conflicts, and CI on the backport PR will validate that the build module still loads and scripts continue to parse correctly.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Low risk because the change is documentation-only in build tooling and does not alter shipped runtime behavior.

@daxian-dbw daxian-dbw requested a review from a team as a code owner April 9, 2026 06:56
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 9, 2026
Copilot AI review requested due to automatic review settings April 9, 2026 06:56
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 9, 2026
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

Backports comment-based help (CBH) into build.psm1 on release/v7.4.15 to improve maintainability and discoverability of build/test tooling functions.

Changes:

  • Added CBH blocks (.SYNOPSIS/.DESCRIPTION/.PARAMETER/.OUTPUTS) across many build.psm1 functions.
  • Minor cleanup within the test/build helpers (e.g., small logic/typo corrections in the touched areas).
  • Removed an older free-form comment in favor of structured CBH for ConvertFrom-PesterLog.

Comment thread build.psm1
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The comment-based help for New-PSOptions says the Framework defaults to 'net11.0', but the actual parameter is constrained to net8.0 and defaults to "net8.0". Please update the help text so it matches the real default/framework supported on this branch.

Suggested change
The target .NET framework moniker. Defaults to 'net11.0'.
The target .NET framework moniker. Defaults to 'net8.0'.

Copilot uses AI. Check for mistakes.
Comment thread build.psm1
.PARAMETER PSModuleRestore
Whether Gallery modules should be restored to the build output.
.PARAMETER Framework
The target .NET framework moniker, e.g. 'net11.0'.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The comment-based help for New-PSOptionsObject uses 'net11.0' as the example framework moniker, but this branch/build script is using net8.0 (see New-PSOptions). Please update the example to avoid pointing readers at a framework that isn't used/supported here.

Suggested change
The target .NET framework moniker, e.g. 'net11.0'.
The target .NET framework moniker, e.g. 'net8.0'.

Copilot uses AI. Check for mistakes.
Comment thread build.psm1
Comment on lines 2143 to 2147
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

PR description/testing notes say this is a help-text-only backport, but this hunk includes a functional behavior change (arm64 now correctly throws as unsupported). Please update the PR description (or split the functional fix) so reviewers/release managers understand this isn't documentation-only.

Copilot uses AI. Check for mistakes.
@daxian-dbw daxian-dbw merged commit 8fb15a5 into PowerShell:release/v7.4.15 Apr 9, 2026
45 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.4.15/27122-1216cb7be branch April 9, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants