Skip to content

🩹 [Patch]: Name the helper module after the action (Debug.Helpers)#32

Merged
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
maintenance/rename-helper-module
Jul 9, 2026
Merged

🩹 [Patch]: Name the helper module after the action (Debug.Helpers)#32
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
maintenance/rename-helper-module

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Member

Aligns the helper module with the action helper-module naming standard: name it after the action (Debug.Helpers) instead of the generic Helpers.

This action loads the shared framework Helpers module (for LogGroup) alongside its own helper module, so the generic name collided in the runner's single module session. An action-scoped name removes the clash.

Changes

  • src/Helpers.psm1src/Debug.Helpers.psm1
  • Updated the entry-script import in src/main.ps1.

No runtime logic changed (100% file rename + one import path).

Validation

Debug.Helpers imports and exports Set-MaskedValue; main.ps1 parses; PSScriptAnalyzer clean. Action-Test in CI is the full gate.

Part of PSModule/Process-PSModule#364. Standard: the "Name helper modules after the action" rule in the GitHub Actions coding standard (MSXOrg/docs#24).

Aligns with the action helper-module naming standard: name the module after the action, not the generic Helpers. The action loads the shared framework Helpers module (for LogGroup) alongside its own, so the generic name collided in the runner's single module session. Renames src/Helpers.psm1 to src/Debug.Helpers.psm1 and updates the entry-script import. No runtime logic changed. Part of PSModule/Process-PSModule#364.

Copilot AI left a comment

Copy link
Copy Markdown

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 resolves a PowerShell module-name collision in the GitHub Action runtime by renaming the action-scoped helper module to an action-specific name (Debug.Helpers) and updating the entry script to import the renamed module.

Changes:

  • Renamed the helper module file from src/Helpers.psm1 to src/Debug.Helpers.psm1 so the loaded module name is action-scoped.
  • Updated src/main.ps1 to import Debug.Helpers.psm1 instead of Helpers.psm1.

Reviewed changes

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

File Description
src/main.ps1 Updates the helper module import to use the action-scoped module name, preventing runtime module-name collisions.
src/Debug.Helpers.psm1 Introduces the renamed helper module file (module name becomes Debug.Helpers) containing Set-MaskedValue.

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

Copilot AI review requested due to automatic review settings July 9, 2026 11:39
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit e9ce1e9 into main Jul 9, 2026
6 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the maintenance/rename-helper-module branch July 9, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown

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 1 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants