File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -133,25 +133,25 @@ jobs:
133133 console.error(`Error fetching related issues: ${error}`);
134134 }
135135 } else {
136- prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; // ❗ `const` entfernt, da `prNote` schon oben existiert
136+ prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
137137 }
138138
139- const updateScriptsCategory = categorizedPRs.find(category =>
140- category.labels.some(label => prLabels.includes(label))
141- );
142-
143- if (updateScriptsCategory) {
144- const subCategory = updateScriptsCategory.subCategories.find(sub =>
145- sub.labels.some(label => prLabels.includes(label))
139+ const updateScriptsCategory = categorizedPRs.find(category =>
140+ category.labels.some(label => prLabels.includes(label))
146141 );
147-
148- if (subCategory) {
149- subCategory.notes.push(prNote);
150- } else {
151- updateScriptsCategory.notes.push(prNote);
142+
143+ if (updateScriptsCategory) {
144+ const subCategory = updateScriptsCategory.subCategories.find(sub =>
145+ sub.labels.some(label => prLabels.includes(label))
146+ );
147+
148+ if (subCategory) {
149+ subCategory.notes.push(prNote);
150+ } else {
151+ updateScriptsCategory.notes.push(prNote);
152+ }
152153 }
153- }
154- }
154+
155155
156156 - name : Update CHANGELOG.md
157157 uses : actions/github-script@v7
You can’t perform that action at this time.
0 commit comments