mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-21 13:48:06 +00:00
Update changelog-pr.yml
This commit is contained in:
parent
03c915241f
commit
92a5f77a5d
28
.github/workflows/changelog-pr.yml
vendored
28
.github/workflows/changelog-pr.yml
vendored
@ -133,25 +133,25 @@ jobs:
|
|||||||
console.error(`Error fetching related issues: ${error}`);
|
console.error(`Error fetching related issues: ${error}`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; // ❗ `const` entfernt, da `prNote` schon oben existiert
|
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateScriptsCategory = categorizedPRs.find(category =>
|
const updateScriptsCategory = categorizedPRs.find(category =>
|
||||||
category.labels.some(label => prLabels.includes(label))
|
category.labels.some(label => prLabels.includes(label))
|
||||||
);
|
|
||||||
|
|
||||||
if (updateScriptsCategory) {
|
|
||||||
const subCategory = updateScriptsCategory.subCategories.find(sub =>
|
|
||||||
sub.labels.some(label => prLabels.includes(label))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (subCategory) {
|
if (updateScriptsCategory) {
|
||||||
subCategory.notes.push(prNote);
|
const subCategory = updateScriptsCategory.subCategories.find(sub =>
|
||||||
} else {
|
sub.labels.some(label => prLabels.includes(label))
|
||||||
updateScriptsCategory.notes.push(prNote);
|
);
|
||||||
|
|
||||||
|
if (subCategory) {
|
||||||
|
subCategory.notes.push(prNote);
|
||||||
|
} else {
|
||||||
|
updateScriptsCategory.notes.push(prNote);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- name: Update CHANGELOG.md
|
- name: Update CHANGELOG.md
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user