Skip to content

Commit 02c1b5c

Browse files
authored
Merge branch 'dev' into hotfix/DEVICE_FEEDING_PLAN_NOT_AVAILABLE
2 parents c1d41ec + 949496f commit 02c1b5c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/auto-assign.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ jobs:
1717
1818
const projectId = "PVT_kwHOAclbns4AqfIH"; // Petlibro Project ID
1919
20-
// Only process your templates
21-
const allowedLabels = ["Bug", "Feature Request", "New Device"];
22-
if (!labels.some(l => allowedLabels.includes(l))) {
20+
// Only process your templates (case-insensitive)
21+
const allowedLabels = ["bug", "feature request", "new device"];
22+
const normalizedLabels = issue.labels.map(l => l.name.toLowerCase());
23+
24+
if (!normalizedLabels.some(l => allowedLabels.includes(l))) {
2325
console.log("Skipping — issue does not match your templates.");
26+
console.log("Labels on issue:", normalizedLabels);
2427
return;
2528
}
2629

0 commit comments

Comments
 (0)