diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index 973d26d..5b5c0b5 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -128,15 +128,17 @@ jobs: 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}))`; } - 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 =>