-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Labels
bugThis relates to a bug in the existing module.This relates to a bug in the existing module.in progressWork on this issue is already underway. Please don't work start new work on it.Work on this issue is already underway. Please don't work start new work on it.
Description
Issue Details
When specifying the Clear
parameter on the Set-GitHubRepositoryTopic
, an Invalid Request
exception occurs.
Steps to reproduce the issue
Set-GitHubRepositoryTopic -OwnerName $ownerName -RepositoryName $repoName -Clear
Verbose logs showing the problem
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://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
Module Version
Running: 0.14.0
Installed: 0.14.0
Metadata
Metadata
Assignees
Labels
bugThis relates to a bug in the existing module.This relates to a bug in the existing module.in progressWork on this issue is already underway. Please don't work start new work on it.Work on this issue is already underway. Please don't work start new work on it.