Skip to content

Commit 06decba

Browse files
authored
Fix the bug that if not adding label ”Service Attention" and label [Service Team], the bot will also comment if these labels already exist (#23232)
1 parent 7d9e043 commit 06decba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tools/Github/ParseServiceContactsList.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ foreach ($contacts in $contactsList) {
8181

8282
$serviceContacts.Add($serviceTeamLabel, [PSCustomObject]@{
8383
if = @(
84+
[PSCustomObject]@{
85+
or = @(
86+
[PSCustomObject]@{
87+
labelAdded = [PSCustomObject]@{
88+
label = 'Service Attention'
89+
}
90+
},
91+
[PSCustomObject]@{
92+
labelAdded = [PSCustomObject]@{
93+
label = $serviceTeamLabel
94+
}
95+
}
96+
)
97+
},
8498
[PSCustomObject]@{
8599
hasLabel = [PSCustomObject]@{
86100
label = 'Service Attention'

0 commit comments

Comments
 (0)