- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
          🩹 [Patch]: Streamline interaction between Get-GitHubOutput and ConvertFrom-GitHubOutput
          #256
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           Module [GitHub - v0.11.42-outputs1] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs1 has been created.  | 
    
…nd improve handling of empty lines
| 
           Module [GitHub - v0.11.42-outputs2] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs2 has been created.  | 
    
| 
           Module [GitHub - v0.11.42-outputs3] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs3 has been created.  | 
    
| 
           Module [GitHub - v0.11.42-outputs4] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs4 has been created.  | 
    
…n and improve debug output format
| 
           Module [GitHub - v0.11.42-outputs5] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs5 has been created.  | 
    
| 
           Module [GitHub - v0.11.42-outputs6] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42-outputs6 has been created.  | 
    
…essary debug logs in Get-GitHubOutput
Get-GitHubOutput and ConvertFrom-GitHubOutput
      Get-GitHubOutput and ConvertFrom-GitHubOutputGet-GitHubOutput and ConvertFrom-GitHubOutput
      …roup function for compatibility with GitHub Runners
| 
           Module [GitHub - v0.11.42] published to the PowerShell Gallery.  | 
    
| 
           GitHub release for GitHub v0.11.42 has been created.  | 
    
Description
This pull request primarily focuses on refactoring and simplifying the codebase. The most significant changes include modifications to the
ConvertFrom-GitHubOutputfunction, removal of unnecessary debug code, and streamlining theSet-GitHubLogGroup,Start-GitHubLogGroup, andStop-GitHubLogGroupfunctions.Refactoring and simplification:
src/functions/private/Commands/ConvertFrom-GitHubOutput.ps1: Refactored the function to useOutputContentinstead ofInputData, streamlined the processing logic, and improved debug messages for better clarity. [1] [2] [3] [4] [5]src/functions/public/Commands/Get-GitHubOutput.ps1: Simplified the function by using the-Rawparameter withGet-Contentand directly passing the content toConvertFrom-GitHubOutput.Removal of unnecessary debug code:
src/functions/public/Commands/Set-GitHubLogGroup.ps1: Removed thebegin,process, andendblocks and unnecessary debug messages, simplifying the function to directly useWrite-Host.src/functions/public/Commands/Start-GitHubLogGroup.ps1: Removed unnecessary debug messages and thebegin,process, andendblocks, simplifying the function to directly useWrite-Host.src/functions/public/Commands/Stop-GitHubLogGroup.ps1: Removed unnecessary debug messages and thebegin,process, andendblocks, simplifying the function to directly useWrite-Host.Minor adjustments:
src/formats/GitHubContext.Format.ps1xml: AddedNameproperty and removedIDproperty from the list entries. [1] [2]Type of change
Checklist