Skip to content

Commit a83dbdf

Browse files
HowardWoloskysmaglio81
authored andcommitted
Fix Update-GitHubRepository typo resulting in incorrect REST endpoint (microsoft#137)
There was a typo in `$RepositoryName` which was being referenced to generate the REST endpoint used for `Update-GitHubRepository`.
1 parent 1017ba7 commit a83dbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitHubRepositories.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ function Update-GitHubRepository
613613
if ($PSBoundParameters.ContainsKey('Archived')) { $hashBody['archived'] = $Archived.ToBool() }
614614

615615
$params = @{
616-
'UriFragment' = "repos/$OwnerName/$ReposistoryName"
616+
'UriFragment' = "repos/$OwnerName/$RepositoryName"
617617
'Body' = (ConvertTo-Json -InputObject $hashBody)
618618
'Method' = 'Patch'
619619
'Description' = "Updating $RepositoryName"

0 commit comments

Comments
 (0)