From 04e57a0414cf2e0b0588c4759c90eb7ee411bef6 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 24 Mar 2025 15:18:18 +0100 Subject: [PATCH] Workflow Update --- .github/workflows/changelog-pr.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index 48b8b2a..8933bb5 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -108,10 +108,6 @@ 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}))`; - - console.log("Author: " ,pr.user.login); - if (pr.user.login === "push-app-to-main[bot]") { console.log("Bot detected"); const scriptName = pr.title; @@ -126,6 +122,7 @@ jobs: const matchingIssue = relatedIssues.find(issue => issue.title.toLowerCase().includes(scriptName.toLowerCase()) ); + console.log("Matching issue", matchingIssue); if (matchingIssue) { const issueAuthor = matchingIssue.user.login; const issueAuthorUrl = `https://github.com/${issueAuthor}`; @@ -137,6 +134,8 @@ jobs: } } + prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`; + if (prLabels.includes("new script")) {