File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3232 const autolabelerConfig = JSON.parse(fileContent);
3333
3434 const prNumber = context.payload.pull_request.number;
35- const prBody = context.payload.pull_request.body.toLowerCase() ;
35+ const prBody = context.payload.pull_request.body;
3636
3737 // Label-Sammlung (um doppelte API-Calls zu vermeiden)
3838 let labelsToAdd = new Set();
7070 };
7171
7272 for (const [checkbox, label] of Object.entries(templateLabelMappings)) {
73- const regex = new RegExp(`- \\[(.*?)\\] ${checkbox}`, "i");
74- const match = prBody.match(regex);
75- if (match && match[1].trim() !== "") { // Checkbox ist gesetzt
73+ const regex = new RegExp(`- \\[x\\] ${checkbox}`, "i"); // Match only checked checkboxes
74+ if (regex.test(prBody)) {
7675 labelsToAdd.add(label);
7776 }
7877 }
You can’t perform that action at this time.
0 commit comments