diff --git a/github/github-api.psm1 b/github/github-api.psm1 index 1e95355..f32612e 100644 --- a/github/github-api.psm1 +++ b/github/github-api.psm1 @@ -155,7 +155,7 @@ function Get-GitHubApi { ) if ($PSCmdlet.ParameterSetName -eq "RepositorySingle") { - $RepositoryOwner, $RepositoryName = $Repository.Split('/', 2) + $RepositoryOwner, $RepositoryName = $RepositoryFullName.Split('/', 2) } return [GitHubApi]::New($RepositoryOwner, $RepositoryName, $AccessToken)