Closed
Description
So I'm pretty sure there's a bug in Update-GitHubRepository
cmdlet - found it by just browsing source code:
PowerShellForGitHub/GitHubRepositories.ps1
Line 613 in 013452b
Passing the Archived
switch will result in archived=false
parameter passed to API.
Is:
$hashBody['archived'] = (-not $Archived.ToBool())
Should be:
$hashBody['archived'] = $Archived.ToBool()
This is probably a copy-paste error since all other properties use inverted style:
PowerShellForGitHub/GitHubRepositories.ps1
Lines 610 to 614 in 013452b