From 1acf48a6b63b81c4c07a5265893e9958798f3944 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Thu, 13 May 2021 11:05:28 -0700 Subject: [PATCH 1/2] New/Set-ADOWorkItem: Fixing piping issue. --- New-ADOWorkItem.ps1 | 3 ++- Set-ADOWorkItem.ps1 | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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/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 '/' From a9418126c6565fb62b2cb16d36eff01a7aa1f14e Mon Sep 17 00:00:00 2001 From: James Brundage Date: Fri, 14 May 2021 10:44:27 -0700 Subject: [PATCH 2/2] Updating Module Version [0.5.3] and Release Notes --- PSDevOps.psd1 | 7 ++++++- ReleaseNotes.md | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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)