Skip to content

Commit df16b74

Browse files
committed
chore: pr label check
1 parent 74e97dd commit df16b74

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/pr-label-check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
7474
let tip = "";
7575
const suggestedSet = new Set(suggested);
76-
const otherLabels = allLabels.filter(l => !suggestedSet.has(l.name));
76+
const allow = ["bug", "documentation", "feature", "dependencies", "packages"];
77+
const otherLabels = allLabels.filter(l =>
78+
!suggestedSet.has(l.name) && allow.includes(l.name)
79+
);
7780
if (suggested.length > 0) {
7881
tip = `\n\n📋 **Recommended labels** (based on changed files):\n`;
7982
for (const name of suggested) {

0 commit comments

Comments
 (0)