Skip to content

Commit 6de3e8c

Browse files
authored
fix calculation for the labels to apply (#294)
fix calculation for the labels to apply
1 parent 183fdd0 commit 6de3e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/sdk_triage_bot/lib/triage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ${trimmedBody(comment.body ?? '')}
124124
await githubService.createComment(sdkSlug, issueNumber, comment);
125125

126126
final allRepoLabels = (await githubService.getAllLabels(sdkSlug)).toSet();
127-
final labelAdditions = newLabels.toSet().union(allRepoLabels).toList()
127+
final labelAdditions = newLabels.toSet().intersection(allRepoLabels).toList()
128128
..sort();
129129
if (labelAdditions.isNotEmpty) {
130130
labelAdditions.add('triage-automation');

0 commit comments

Comments
 (0)