mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Fix Workflow (#3387)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7d0f60c8d1
						
					
				
				
					commit
					b1f51e2d34
				
			
							
								
								
									
										18
									
								
								.github/workflows/changelog-pr.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/changelog-pr.yml
									
									
									
									
										vendored
									
									
								
							@@ -107,36 +107,38 @@ jobs:
 | 
			
		||||
 | 
			
		||||
              for (const pr of filteredPRs) {
 | 
			
		||||
                const prLabels = pr.labels.map(label => label.name.toLowerCase());
 | 
			
		||||
 | 
			
		||||
                let prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                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,
 | 
			
		||||
                        repo: "ProxmoxVED",
 | 
			
		||||
                        state: "all",
 | 
			
		||||
                        labels: ["Started Migration To ProxmoxVE"],
 | 
			
		||||
                        per_page: 5
 | 
			
		||||
                        labels: ["Started Migration To ProxmoxVE"]
 | 
			
		||||
                      });
 | 
			
		||||
 | 
			
		||||
                      const matchingIssue = relatedIssues.find(issue =>
 | 
			
		||||
                        issue.title.toLowerCase().includes(scriptName.toLowerCase())
 | 
			
		||||
                      );
 | 
			
		||||
 | 
			
		||||
                      if (matchingIssue) {
 | 
			
		||||
                        const issueAuthor = matchingIssue.user.login;
 | 
			
		||||
                        const issueAuthorUrl = `https://github.com/${issueAuthor}`;
 | 
			
		||||
                        prNote = `- ${pr.title} [@${issueAuthor}](${issueAuthorUrl}) ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
                      }
 | 
			
		||||
                      else {
 | 
			
		||||
                        prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
                      }
 | 
			
		||||
                    } catch (error) {
 | 
			
		||||
                      console.error(`Error fetching related issues: ${error}`);
 | 
			
		||||
                      prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
                    }
 | 
			
		||||
                }else{
 | 
			
		||||
                  prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                if (prLabels.includes("new script")) {
 | 
			
		||||
                  const newScriptCategory = categorizedPRs.find(category =>
 | 
			
		||||
                  category.title === "New Scripts" || category.labels.includes("new script"));
 | 
			
		||||
@@ -174,7 +176,7 @@ jobs:
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return await main();
 | 
			
		||||
 | 
			
		||||
            
 | 
			
		||||
      - name: Update CHANGELOG.md
 | 
			
		||||
        uses: actions/github-script@v7
 | 
			
		||||
        with:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user