mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-06-30 02:57:38 +00:00
Update changelog-pr.yml
This commit is contained in:
9
.github/workflows/changelog-pr.yml
vendored
9
.github/workflows/changelog-pr.yml
vendored
@ -105,7 +105,7 @@ jobs:
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const pr of filteredPRs) { // ✅ for...of unterstützt await
|
for (const pr of filteredPRs) {
|
||||||
const prLabels = pr.labels.map(label => label.name.toLowerCase());
|
const prLabels = pr.labels.map(label => label.name.toLowerCase());
|
||||||
|
|
||||||
let prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
|
let prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: "ProxmoxVED",
|
repo: "ProxmoxVED",
|
||||||
state: "all",
|
state: "all",
|
||||||
labels: ["Started Migration To ProxmoxVE"], // "label" -> "labels"
|
labels: ["Started Migration To ProxmoxVE"],
|
||||||
per_page: 5
|
per_page: 5
|
||||||
});
|
});
|
||||||
const matchingIssue = relatedIssues.find(issue =>
|
const matchingIssue = relatedIssues.find(issue =>
|
||||||
@ -132,9 +132,10 @@ jobs:
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error fetching related issues: ${error}`);
|
console.error(`Error fetching related issues: ${error}`);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; // ❗ `const` entfernt, da `prNote` schon oben existiert
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const updateScriptsCategory = categorizedPRs.find(category =>
|
const updateScriptsCategory = categorizedPRs.find(category =>
|
||||||
category.labels.some(label => prLabels.includes(label))
|
category.labels.some(label => prLabels.includes(label))
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user