-
Couldn't load subscription status.
- Fork 5
🩹 [Patch]: Improve the handling of wildcard names in Get-GitHubEnvironment
#329
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
…prove environment retrieval logic in `Get-GitHubEnvironment`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (2)
- src/functions/private/Environments/Get-GitHubEnvironmentByName.ps1: Language not supported
- src/functions/public/Environments/Get-GitHubEnvironment.ps1: Language not supported
…d 'Name' parameter and add checks for existing environments
… retrieval of environments with slashes in their names
…arify expected behavior when no environments are retrieved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (3)
- src/functions/private/Environments/Get-GitHubEnvironmentByName.ps1: Language not supported
- src/functions/public/Environments/Get-GitHubEnvironment.ps1: Language not supported
- tests/Environments.Tests.ps1: Language not supported
|
Module GitHub - 0.18.1 published to the PowerShell Gallery. |
|
GitHub release for GitHub v0.18.1 has been created. |
Description
This pull request includes updates to the
Get-GitHubEnvironmentandGet-GitHubEnvironmentByNamefunctions, as well as significant changes to theEnvironments.Tests.ps1file to improve test coverage and clarity.Improvements to
Get-GitHubEnvironmentandGet-GitHubEnvironmentByNamefunctions:src/functions/private/Environments/Get-GitHubEnvironmentByName.ps1: Added a try-catch block to handle exceptions and ensure the function returns gracefully in case of errors. [1] [2]src/functions/public/Environments/Get-GitHubEnvironment.ps1: Added logic to handle wildcard characters in environment names, allowing for more flexible environment retrieval.Enhancements to test coverage and clarity:
tests/Environments.Tests.ps1: Refactored test descriptions and contexts for better readability and organization. Tests now cover scenarios such as listing all environments, retrieving specific environments, and handling non-existent environments. [1] [2] [3] [4] [5]Type of change
Checklist