diff --git a/GitHubIssues.ps1 b/GitHubIssues.ps1 index 4b3e3aec..da1312c6 100644 --- a/GitHubIssues.ps1 +++ b/GitHubIssues.ps1 @@ -509,7 +509,7 @@ function New-GitHubIssue if ($PSBoundParameters.ContainsKey('Body')) { $hashBody['body'] = $Body } if ($PSBoundParameters.ContainsKey('Assignee')) { $hashBody['assignees'] = @($Assignee) } if ($PSBoundParameters.ContainsKey('Milestone')) { $hashBody['milestone'] = $Milestone } - if ($PSBoundParameters.ContainsKey('Label')) { $hashBody['label'] = @($Label) } + if ($PSBoundParameters.ContainsKey('Label')) { $hashBody['labels'] = @($Label) } $params = @{ 'UriFragment' = "/repos/$OwnerName/$RepositoryName/issues"