🩹 [Patch]: Name the helper module after the action (Debug.Helpers)#32
Merged
Marius Storhaug (MariusStorhaug) merged 2 commits intoJul 9, 2026
Merged
Conversation
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 started reviewing on behalf of
Marius Storhaug (MariusStorhaug)
July 9, 2026 11:13
View session
There was a problem hiding this comment.
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.psm1tosrc/Debug.Helpers.psm1so the loaded module name is action-scoped. - Updated
src/main.ps1to importDebug.Helpers.psm1instead ofHelpers.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.
9 tasks
Copilot started reviewing on behalf of
Marius Storhaug (MariusStorhaug)
July 9, 2026 11:40
View session
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.
Aligns the helper module with the action helper-module naming standard: name it after the action (
Debug.Helpers) instead of the genericHelpers.This action loads the shared framework
Helpersmodule (forLogGroup) 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.psm1→src/Debug.Helpers.psm1src/main.ps1.No runtime logic changed (100% file rename + one import path).
Validation
Debug.Helpersimports and exportsSet-MaskedValue;main.ps1parses; 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).