From decf83eed09ac23aecefcae1d4a9f671ac4432c3 Mon Sep 17 00:00:00 2001 From: Howard Wolosky Date: Fri, 29 May 2020 08:34:17 -0700 Subject: [PATCH] Exception in New-GitHubRepository when specifying TeamId Incorrectly used `$PSBoundParameters.Contains` instead of `$PSBoundParameters.ContainsKey`. Resolves #195 --- GitHubRepositories.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHubRepositories.ps1 b/GitHubRepositories.ps1 index 5f58b450..bff7c159 100644 --- a/GitHubRepositories.ps1 +++ b/GitHubRepositories.ps1 @@ -139,7 +139,7 @@ function New-GitHubRepository $uriFragment = "orgs/$OrganizationName/repos" } - if ($PSBoundParameters.ContainsKey('TeamId') -and (-not $PSBoundParameters.Contains('OrganizationName'))) + if ($PSBoundParameters.ContainsKey('TeamId') -and (-not $PSBoundParameters.ContainsKey('OrganizationName'))) { $message = 'TeamId may only be specified when creating a repository under an organization.' Write-Log -Message $message -Level Error