Skip to content

Commit 03c9152

Browse files
committed
Update changelog-pr.yml
1 parent 4fd8e26 commit 03c9152

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/changelog-pr.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
)
106106
);
107107
108-
for (const pr of filteredPRs) { // ✅ for...of unterstützt await
108+
for (const pr of filteredPRs) {
109109
const prLabels = pr.labels.map(label => label.name.toLowerCase());
110110
111111
let prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
@@ -118,7 +118,7 @@ jobs:
118118
owner: context.repo.owner,
119119
repo: "ProxmoxVED",
120120
state: "all",
121-
labels: ["Started Migration To ProxmoxVE"], // "label" -> "labels"
121+
labels: ["Started Migration To ProxmoxVE"],
122122
per_page: 5
123123
});
124124
const matchingIssue = relatedIssues.find(issue =>
@@ -132,9 +132,10 @@ jobs:
132132
} catch (error) {
133133
console.error(`Error fetching related issues: ${error}`);
134134
}
135+
} else {
136+
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; // ❗ `const` entfernt, da `prNote` schon oben existiert
135137
}
136-
}
137-
138+
138139
const updateScriptsCategory = categorizedPRs.find(category =>
139140
category.labels.some(label => prLabels.includes(label))
140141
);

0 commit comments

Comments
 (0)