Workflow Update
This commit is contained in:
parent
d0c093e076
commit
b950366ee2
15
.github/workflows/changelog-pr.yaml
vendored
15
.github/workflows/changelog-pr.yaml
vendored
@ -136,18 +136,19 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Check if PR has "new script" label
|
|
||||||
if (prLabels.includes("new script")) {
|
if (prLabels.includes("new script")) {
|
||||||
// Find the New Script category
|
|
||||||
const newScriptCategory = categorizedPRs.find(category =>
|
const newScriptCategory = categorizedPRs.find(category =>
|
||||||
category.title === "New Scripts" || category.labels.includes("new script"));
|
category.title === "New Scripts" || category.labels.includes("new script"));
|
||||||
|
|
||||||
if (newScriptCategory) {
|
if (newScriptCategory) {
|
||||||
newScriptCategory.notes.push(prNote);
|
newScriptCategory.notes.push(prNote);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Normal category processing for other PRs
|
|
||||||
for (const category of categorizedPRs) {
|
let categorized = false;
|
||||||
|
const priorityCategories = categorizedPRs.slice();
|
||||||
|
for (const category of priorityCategories) {
|
||||||
|
if (categorized) break;
|
||||||
if (category.labels.some(label => prLabels.includes(label))) {
|
if (category.labels.some(label => prLabels.includes(label))) {
|
||||||
if (category.subCategories && category.subCategories.length > 0) {
|
if (category.subCategories && category.subCategories.length > 0) {
|
||||||
const subCategory = category.subCategories.find(sub =>
|
const subCategory = category.subCategories.find(sub =>
|
||||||
@ -159,10 +160,10 @@ jobs:
|
|||||||
} else {
|
} else {
|
||||||
category.notes.push(prNote);
|
category.notes.push(prNote);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
category.notes.push(prNote);
|
category.notes.push(prNote);
|
||||||
}
|
}
|
||||||
|
categorized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user