Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Mar 20, 2025

Description

This pull request includes updates to the Get-GitHubEnvironment and Get-GitHubEnvironmentByName functions, as well as significant changes to the Environments.Tests.ps1 file to improve test coverage and clarity.

Improvements to Get-GitHubEnvironment and Get-GitHubEnvironmentByName functions:

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

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

…prove environment retrieval logic in `Get-GitHubEnvironment`
@MariusStorhaug MariusStorhaug self-assigned this Mar 20, 2025
@Copilot Copilot AI review requested due to automatic review settings March 20, 2025 07:56
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner March 20, 2025 07:56
Copy link
Contributor

Copilot AI left a 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
@MariusStorhaug MariusStorhaug moved this from Todo to In Progress in GitHub PowerShell Module Mar 20, 2025
@MariusStorhaug MariusStorhaug requested a review from Copilot March 20, 2025 09:33
Copy link
Contributor

Copilot AI left a 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

@MariusStorhaug MariusStorhaug enabled auto-merge (squash) March 20, 2025 09:35
@MariusStorhaug MariusStorhaug disabled auto-merge March 20, 2025 09:55
@MariusStorhaug MariusStorhaug merged commit b079124 into main Mar 20, 2025
10 checks passed
@MariusStorhaug MariusStorhaug deleted the BetterWildcardingEnvironments branch March 20, 2025 09:55
@github-project-automation github-project-automation bot moved this from In Progress to Done in GitHub PowerShell Module Mar 20, 2025
@github-actions
Copy link
Contributor

Module GitHub - 0.18.1 published to the PowerShell Gallery.

@github-actions
Copy link
Contributor

GitHub release for GitHub v0.18.1 has been created.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant