File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments