diff --git a/New-ADOWorkItem.ps1 b/New-ADOWorkItem.ps1 index 76eb9f7e..9128a4a5 100644 --- a/New-ADOWorkItem.ps1 +++ b/New-ADOWorkItem.ps1 @@ -169,10 +169,11 @@ end { $c, $t, $progId = 0, $q.Count, [Random]::new().Next() + $originalInvokeParams = $invokeParams while ($q.Count) { . $dq $q $uriBase = "$Server".TrimEnd('/'), $Organization, $Project -join '/' - + $invokeParams = @{} + $originalInvokeParams $c++ Write-Progress "Creating" "$type [$c/$t]" -PercentComplete ($c * 100 / $t) -Id $progId diff --git a/PSDevOps.psd1 b/PSDevOps.psd1 index f5bc8213..7aa32c76 100644 --- a/PSDevOps.psd1 +++ b/PSDevOps.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '0.5.2' + ModuleVersion = '0.5.3' RootModule = 'PSDevOps.psm1' Description = 'PowerShell Tools for DevOps' Guid = 'e6b56c5f-41ac-4ba4-8b88-2c063f683176' @@ -9,6 +9,11 @@ ProjectURI = 'https://github.com/StartAutomating/PSDevOps' LicenseURI = 'https://github.com/StartAutomating/PSDevOps/blob/master/LICENSE' ReleaseNotes = @' +0.5.3 +--- +* Get-ADORepository : Adding -PullRequestID +* New/Set-ADOWorkItem: Fixing pipelining issue + 0.5.2 --- * Get-ADOTeam: Adding alias -AreaPath for -TeamFieldValue, carrying on team property diff --git a/ReleaseNotes.md b/ReleaseNotes.md index ab588748..8477aebf 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,4 +1,9 @@ -0.5.2 +0.5.3 +--- +* Get-ADORepository : Adding -PullRequestID +* New/Set-ADOWorkItem: Fixing pipelining issue + +0.5.2 --- * Get-ADOTeam: Adding alias -AreaPath for -TeamFieldValue, carrying on team property * Set-ADOTeam: Support for -DefaultAreaPath/-AreaPath (TeamFieldValues api, fixing issue #92) diff --git a/Set-ADOWorkItem.ps1 b/Set-ADOWorkItem.ps1 index c53e0af7..2e701487 100644 --- a/Set-ADOWorkItem.ps1 +++ b/Set-ADOWorkItem.ps1 @@ -217,10 +217,11 @@ } end { - $c, $t, $progId = 0, $q.Count, [Random]::new().Next() + $c, $t, $progId = 0, $q.Count, [Random]::new().Next() + $originalInvokeParams = $invokeParams while ($q.Count) { . $dq $q - + $invokeParams = @{} + $originalInvokeParams Write-Progress "Updating Work Items" " [$c of $t] $ID" -PercentComplete ($c * 100 /$t) -Id $progId $uriBase = "$Server".TrimEnd('/'), $Organization, $Project -join '/'