Workflow Update
This commit is contained in:
parent
cd121a567d
commit
9eb1d0b29a
9
.github/workflows/changelog-pr.yaml
vendored
9
.github/workflows/changelog-pr.yaml
vendored
@ -139,25 +139,24 @@ jobs:
|
||||
}
|
||||
}
|
||||
|
||||
// Find matching category
|
||||
for (const category of categorizedPRs) {
|
||||
if (category.labels.some(label => prLabels.includes(label))) {
|
||||
// Check if PR belongs to a subcategory
|
||||
if (category.labels.some(label => prLabels.includes(label)) && !category.labels.some(label => prLabels.includes("new script"))) {
|
||||
if (category.subCategories && category.subCategories.length > 0) {
|
||||
const subCategory = category.subCategories.find(sub =>
|
||||
sub.labels.some(label => prLabels.includes(label))
|
||||
);
|
||||
|
||||
if (subCategory) {
|
||||
if(!category.labels.includes("new script")){
|
||||
subCategory.notes.push(prNote);
|
||||
}
|
||||
} else {
|
||||
category.notes.push(prNote);
|
||||
}
|
||||
} else {
|
||||
category.notes.push(prNote);
|
||||
}
|
||||
}else if (category.labels.includes("new script")) {
|
||||
if (prLabels.includes("new script")) {
|
||||
category.notes.push(prNote);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user