Changelog Workflow Update Mirror (#10197)

This commit is contained in:
Selis
2025-02-20 00:16:32 +01:00
committed by GitHub
parent 33581b44ee
commit aae4063c27
3 changed files with 37 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ function parseChangelogBody(lines, openTag) {
const entry = CHANGELOG_KEYS_TO_ENTRY[type] || CHANGELOG_KEYS_TO_ENTRY["rscadd"];
if (entry.placeholders.includes(description)) {
if (!entry || entry.placeholders.includes(description)) {
continue;
}
@@ -64,6 +64,9 @@ function parseChangelogBody(lines, openTag) {
}
export function parseChangelog(text) {
if(text == null) {
return undefined;
}
const lines = text.split("\n").map((line) => line.trim());
for (let index = 0; index < lines.length; index++) {