There was an error while loading. Please reload this page.
1 parent c05f29b commit 949496fCopy full SHA for 949496f
1 file changed
.github/workflows/auto-assign.yml
@@ -17,10 +17,13 @@ jobs:
17
18
const projectId = "PVT_kwHOAclbns4AqfIH"; // Petlibro Project ID
19
20
- // Only process your templates
21
- const allowedLabels = ["Bug", "Feature Request", "New Device"];
22
- if (!labels.some(l => allowedLabels.includes(l))) {
+ // Only process your templates (case-insensitive)
+ const allowedLabels = ["bug", "feature request", "new device"];
+ const normalizedLabels = issue.labels.map(l => l.name.toLowerCase());
23
+
24
+ if (!normalizedLabels.some(l => allowedLabels.includes(l))) {
25
console.log("Skipping — issue does not match your templates.");
26
+ console.log("Labels on issue:", normalizedLabels);
27
return;
28
}
29
0 commit comments