Skip to content

Commit 835071f

Browse files
azure-sdksmw-ms
andauthored
Sync eng/common directory with azure-sdk-tools for PR 12605 (Azure#3253)
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#12605 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Summer Warren <[email protected]>
1 parent e70be4f commit 835071f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,11 @@ function Get-TriagesForCPEXAttestation()
12091209

12101210
function Update-AttestationStatusInWorkItem($workItemId, $fieldName, $status)
12111211
{
1212-
$fields = "`"${fieldName}=${status}`""
1212+
$dateFieldName = $fieldName -replace 'Status$', 'Date'
1213+
1214+
$fields = @()
1215+
$fields += "`"${fieldName}=${status}`""
1216+
$fields += "`"${dateFieldName}=$(Get-Date)`""
12131217

12141218
Write-Host "Updating Work Item [$workItemId] with status [$status] for field [$fieldName]."
12151219
$workItem = UpdateWorkItem -id $workItemId -fields $fields

0 commit comments

Comments
 (0)