Skip to content

Commit

Permalink
Merge pull request #244 from lipkau/fix/LabelHandling
Browse files Browse the repository at this point in the history
Fixed the process to add and remove labels from issue
  • Loading branch information
lipkau authored May 4, 2018
2 parents 8b07452 + 8156bb7 commit 4beb04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JiraPS/Public/Set-JiraIssueLabel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
'ModifyLabels' {
if ($Add) {
Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] Adding labels"
$null = $labels.Add($Add)
$null = foreach ($_add in $Add) { $labels.Add($_add) }
}
if ($Remove) {
Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] Removing labels"
foreach ($item in $Remote) {
foreach ($item in $Remove) {
$labels.Remove($item)
}
}
Expand Down

0 comments on commit 4beb04d

Please sign in to comment.