From 1352952282133c337ba6d7cbd38086864673404a Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 24 Mar 2025 13:34:23 +0100 Subject: [PATCH] Workflow Update --- .github/workflows/changelog-pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index 7b71af0..dbecbcc 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -112,7 +112,7 @@ jobs: if (pr.user.login.includes("push-app-to-main[bot]")) { - console.error("PR created by push-to-main-app"); + const scriptName = pr.title; try { @@ -123,12 +123,12 @@ jobs: labels: ["Started Migration To ProxmoxVE"], per_page: 5 }); - console.log(`Related issues: ${JSON.stringify(relatedIssues, null, 2)}`); + const matchingIssue = relatedIssues.find(issue => issue.title.toLowerCase().includes(scriptName.toLowerCase()) ); - console.log(`Matching issue: ${JSON.stringify(matchingIssue, null, 2)}`); + if (matchingIssue) { const issueAuthor = matchingIssue.user.login; const issueAuthorUrl = `https://github.com/${issueAuthor}`;