You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set-GitHubRepositoryTopic: Exception When 'Clear' Parameter is Specified #215
Exception: Z:\Users\Simon\Documents\GitHub\X-Guardian\PowerShellForGitHub\GitHubCore.ps1:313:17
Line |
313 | throw $remoteErrors[0].Exception
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| {"message":"Invalid request.\n\nFor 'items', nil is not a string.","documentation_url":"https://github.com/proxy/developer.github.com/v3/repos#replace-all-topics-for-a-repository"}
Suggested solution to the issue
Modify processing in Set-GitHubRepositoryTopic to set the Name parameter to an empty array if the Clear parameter is specified.
Requested Assignment
If possible, I would like to fix this.
Operating System
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 1903
WindowsBuildLabEx : 18362.1.amd64fre.19h1_release.190318-1202
OsLanguage : en-GB
OsMuiLanguages : {en-GB, en-US, th-TH}
PowerShell Version
PSVersion 7.0.1
PSEdition Core
GitCommitId 7.0.1
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Activity
HowardWolosky commentedon Jun 2, 2020
Thanks for figuring this out and implementing the fix.
Set-GitHubRepositoryTopic: Fix Exception When Clear 'Parameter' is Sp…