Add comment-based help for IdLE.Core public functions#189
Merged
Conversation
Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add comment-based help for New-IdleLifecycleRequestObject
Add comment-based help for New-IdleLifecycleRequestObject
Feb 13, 2026
blindzero
requested changes
Feb 13, 2026
…ing examples Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot
AI
changed the title
Add comment-based help for New-IdleLifecycleRequestObject
Add comment-based help for IdLE.Core public functions
Feb 13, 2026
blindzero
approved these changes
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive comment-based help (CBH) to IdLE.Core public functions to improve API documentation and Get-Help output. Before this change, functions lacked complete CBH, making them harder to use and discover. The PR focuses on New-IdleLifecycleRequestObject with complete documentation and adds examples to three other functions, plus a general test to prevent future CBH regressions.
Changes:
- Added complete CBH (synopsis, description, parameters, 3 examples, outputs, security notes) to
New-IdleLifecycleRequestObject - Added examples to
Invoke-IdlePlanObject,New-IdlePlanObject, andTest-IdleWorkflowDefinitionObject - Added automated test to validate all IdLE.Core public functions have synopsis, description, and examples
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/IdLE.Core/Public/New-IdleLifecycleRequestObject.ps1 | Added complete CBH including synopsis, description, all parameter docs, 3 examples showing minimal/typical/mover workflows, outputs, and comprehensive security notes |
| src/IdLE.Core/Public/Invoke-IdlePlanObject.ps1 | Added example demonstrating plan execution with provider registry |
| src/IdLE.Core/Public/New-IdlePlanObject.ps1 | Added example demonstrating plan creation from workflow and request |
| src/IdLE.Core/Public/Test-IdleWorkflowDefinitionObject.ps1 | Added example demonstrating workflow validation |
| tests/Core/ModuleExports.Tests.ps1 | Added comprehensive test validating all IdLE.Core public functions have synopsis, description, and at least one example |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
blindzero
approved these changes
Feb 13, 2026
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.
IdLE.Core public functions lacked complete comment-based help, causing
Get-Helpto return only auto-generated parameter signatures with no documentation.Changes
Added complete CBH to
New-IdleLifecycleRequestObject:Added examples to 3 additional functions:
Invoke-IdlePlanObject: Added example showing plan executionNew-IdlePlanObject: Added example showing plan creationTest-IdleWorkflowDefinitionObject: Added example showing workflow validationAdded comprehensive test in
tests/Core/ModuleExports.Tests.ps1to verify CBH presence (synopsis, description, examples, and parameter documentation) for all IdLE.Core public functionsExample
Before:
After:
Testing
All 8 IdLE.Core public functions now have complete CBH and pass the comprehensive validation test that checks for synopsis, description, examples, and parameter documentation (per STYLEGUIDE.md requirements).
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.