Skip to content

Commit 184fefa

Browse files
authored
fix autolabel automatically removing size labels (#7506)
1 parent 0557800 commit 184fefa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/pull_request_hooks/autoLabel.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ async function check_diff_files_for_labels(github, context) {
170170
console.error("Error fetching paginated files:", error);
171171
}
172172

173+
const size_labels = [
174+
"size/XS",
175+
"size/S",
176+
"size/M",
177+
"size/L",
178+
"size/XL",
179+
"size/XXL",
180+
];
181+
labels_to_remove.filter((label) => !size_labels.includes(label));
182+
173183
return { labels_to_add, labels_to_remove };
174184
}
175185

0 commit comments

Comments
 (0)