mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Update changelog-pr.yml
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/changelog-pr.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/changelog-pr.yml
									
									
									
									
										vendored
									
									
								
							@@ -133,25 +133,25 @@ jobs:
 | 
			
		||||
                    console.error(`Error fetching related issues: ${error}`);
 | 
			
		||||
                  }
 | 
			
		||||
                } else {
 | 
			
		||||
                  prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; // ❗ `const` entfernt, da `prNote` schon oben existiert
 | 
			
		||||
                  prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
              const updateScriptsCategory = categorizedPRs.find(category =>
 | 
			
		||||
                category.labels.some(label => prLabels.includes(label))
 | 
			
		||||
              );
 | 
			
		||||
            
 | 
			
		||||
              if (updateScriptsCategory) {
 | 
			
		||||
                const subCategory = updateScriptsCategory.subCategories.find(sub =>
 | 
			
		||||
                  sub.labels.some(label => prLabels.includes(label))
 | 
			
		||||
                const updateScriptsCategory = categorizedPRs.find(category =>
 | 
			
		||||
                  category.labels.some(label => prLabels.includes(label))
 | 
			
		||||
                );
 | 
			
		||||
            
 | 
			
		||||
                if (subCategory) {
 | 
			
		||||
                  subCategory.notes.push(prNote);
 | 
			
		||||
                } else {
 | 
			
		||||
                  updateScriptsCategory.notes.push(prNote);
 | 
			
		||||
 | 
			
		||||
                if (updateScriptsCategory) {
 | 
			
		||||
                  const subCategory = updateScriptsCategory.subCategories.find(sub =>
 | 
			
		||||
                    sub.labels.some(label => prLabels.includes(label))
 | 
			
		||||
                  );
 | 
			
		||||
 | 
			
		||||
                  if (subCategory) {
 | 
			
		||||
                    subCategory.notes.push(prNote);
 | 
			
		||||
                  } else {
 | 
			
		||||
                    updateScriptsCategory.notes.push(prNote);
 | 
			
		||||
                  }
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      - name: Update CHANGELOG.md
 | 
			
		||||
        uses: actions/github-script@v7
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user