Skip to content

Commit 4c00dec

Browse files
Merge pull request #98 from StartAutomating/WorkItemFixes
New/Set-ADOWorkItem: Fixing piping issue
2 parents e244a8d + a941812 commit 4c00dec

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

New-ADOWorkItem.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@
169169

170170
end {
171171
$c, $t, $progId = 0, $q.Count, [Random]::new().Next()
172+
$originalInvokeParams = $invokeParams
172173
while ($q.Count) {
173174
. $dq $q
174175
$uriBase = "$Server".TrimEnd('/'), $Organization, $Project -join '/'
175-
176+
$invokeParams = @{} + $originalInvokeParams
176177

177178
$c++
178179
Write-Progress "Creating" "$type [$c/$t]" -PercentComplete ($c * 100 / $t) -Id $progId

PSDevOps.psd1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@{
2-
ModuleVersion = '0.5.2'
2+
ModuleVersion = '0.5.3'
33
RootModule = 'PSDevOps.psm1'
44
Description = 'PowerShell Tools for DevOps'
55
Guid = 'e6b56c5f-41ac-4ba4-8b88-2c063f683176'
@@ -9,6 +9,11 @@
99
ProjectURI = 'https://github.com/StartAutomating/PSDevOps'
1010
LicenseURI = 'https://github.com/StartAutomating/PSDevOps/blob/master/LICENSE'
1111
ReleaseNotes = @'
12+
0.5.3
13+
---
14+
* Get-ADORepository : Adding -PullRequestID
15+
* New/Set-ADOWorkItem: Fixing pipelining issue
16+
1217
0.5.2
1318
---
1419
* Get-ADOTeam: Adding alias -AreaPath for -TeamFieldValue, carrying on team property

ReleaseNotes.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
0.5.2
1+
0.5.3
2+
---
3+
* Get-ADORepository : Adding -PullRequestID
4+
* New/Set-ADOWorkItem: Fixing pipelining issue
5+
6+
0.5.2
27
---
38
* Get-ADOTeam: Adding alias -AreaPath for -TeamFieldValue, carrying on team property
49
* Set-ADOTeam: Support for -DefaultAreaPath/-AreaPath (TeamFieldValues api, fixing issue #92)

Set-ADOWorkItem.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@
217217
}
218218

219219
end {
220-
$c, $t, $progId = 0, $q.Count, [Random]::new().Next()
220+
$c, $t, $progId = 0, $q.Count, [Random]::new().Next()
221+
$originalInvokeParams = $invokeParams
221222
while ($q.Count) {
222223
. $dq $q
223-
224+
$invokeParams = @{} + $originalInvokeParams
224225
Write-Progress "Updating Work Items" " [$c of $t] $ID" -PercentComplete ($c * 100 /$t) -Id $progId
225226

226227
$uriBase = "$Server".TrimEnd('/'), $Organization, $Project -join '/'

0 commit comments

Comments
 (0)