From ee215e778cea60c91d099330d3ff08cec0af418e Mon Sep 17 00:00:00 2001 From: Vincent Dai <23257217+vidai-msft@users.noreply.github.com> Date: Fri, 3 Nov 2023 17:30:31 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20the=20bug=20that=20if=20not=20adding=20la?= =?UTF-8?q?bel=20=E2=80=9DService=20Attention"=20and=20label=20[Service=20?= =?UTF-8?q?Team],=20the=20bot=20will=20also=20comment=20if=20these=20label?= =?UTF-8?q?s=20already=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/Github/ParseServiceContactsList.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/Github/ParseServiceContactsList.ps1 b/tools/Github/ParseServiceContactsList.ps1 index 235339716c05..1f8501f3524c 100644 --- a/tools/Github/ParseServiceContactsList.ps1 +++ b/tools/Github/ParseServiceContactsList.ps1 @@ -81,6 +81,20 @@ foreach ($contacts in $contactsList) { $serviceContacts.Add($serviceTeamLabel, [PSCustomObject]@{ if = @( + [PSCustomObject]@{ + or = @( + [PSCustomObject]@{ + labelAdded = [PSCustomObject]@{ + label = 'Service Attention' + } + }, + [PSCustomObject]@{ + labelAdded = [PSCustomObject]@{ + label = $serviceTeamLabel + } + } + ) + }, [PSCustomObject]@{ hasLabel = [PSCustomObject]@{ label = 'Service Attention'