Workflow Update

This commit is contained in:
Michel Roegl-Brunner 2025-03-24 13:48:01 +01:00
parent ca2dd380a1
commit 92bd80df10

View File

@ -112,9 +112,7 @@ jobs:
if (pr.user.login.includes("push-app-to-main[bot]")) {
const scriptName = pr.title;
try {
const { data: relatedIssues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
@ -123,12 +121,9 @@ jobs:
labels: ["Started Migration To ProxmoxVE"],
per_page: 5
});
const matchingIssue = relatedIssues.find(issue =>
issue.title.toLowerCase().includes(scriptName.toLowerCase())
);
if (matchingIssue) {
const issueAuthor = matchingIssue.user.login;
const issueAuthorUrl = `https://github.com/${issueAuthor}`;
@ -139,7 +134,7 @@ jobs:
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
}
}
console.log(categorizedPRs);
for (const category of categorizedPRs) {
if (category.labels.some(label => prLabels.includes(label))) {
if (category.subCategories && category.subCategories.length > 0) {