File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ function Update-GitHubIssue
640
640
if ($PSBoundParameters.ContainsKey (' Title' )) { $hashBody [' title' ] = $Title }
641
641
if ($PSBoundParameters.ContainsKey (' Body' )) { $hashBody [' body' ] = $Body }
642
642
if ($PSBoundParameters.ContainsKey (' Assignee' )) { $hashBody [' assignees' ] = @ ($Assignee ) }
643
- if ($PSBoundParameters.ContainsKey (' Label' )) { $hashBody [' label ' ] = @ ($Label ) }
643
+ if ($PSBoundParameters.ContainsKey (' Label' )) { $hashBody [' labels ' ] = @ ($Label ) }
644
644
if ($PSBoundParameters.ContainsKey (' State' )) { $hashBody [' state' ] = $State }
645
645
if ($PSBoundParameters.ContainsKey (' Milestone' ))
646
646
{
Original file line number Diff line number Diff line change 378
378
$labelIssues.Count | Should be $defaultLabels.Count
379
379
}
380
380
381
+ $updatedIssueLabels = @ ($labelsToAdd [0 ])
382
+ $updatedIssue = Update-GitHubIssue - OwnerName $ownerName - RepositoryName $repositoryName - Issue $issue.number - Label $updatedIssueLabels
383
+
384
+ It ' Should have 1 label after updating the issue' {
385
+ $updatedIssue.labels.Count | Should be $updatedIssueLabels.Count
386
+ }
387
+
381
388
$null = Remove-GitHubRepository - OwnerName $ownerName - RepositoryName $repositoryName
382
389
}
383
390
}
You can’t perform that action at this time.
0 commit comments