From 4ed3145f9fa5a92f0970dc735a03767faf2c8df3 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Thu, 29 Aug 2024 09:26:17 -0700 Subject: [PATCH] fix calculation for the labels to apply --- pkgs/sdk_triage_bot/lib/triage.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/sdk_triage_bot/lib/triage.dart b/pkgs/sdk_triage_bot/lib/triage.dart index 9529e98a..d5c1fb7a 100644 --- a/pkgs/sdk_triage_bot/lib/triage.dart +++ b/pkgs/sdk_triage_bot/lib/triage.dart @@ -124,7 +124,7 @@ ${trimmedBody(comment.body ?? '')} await githubService.createComment(sdkSlug, issueNumber, comment); final allRepoLabels = (await githubService.getAllLabels(sdkSlug)).toSet(); - final labelAdditions = newLabels.toSet().union(allRepoLabels).toList() + final labelAdditions = newLabels.toSet().intersection(allRepoLabels).toList() ..sort(); if (labelAdditions.isNotEmpty) { labelAdditions.add('triage-automation');