From 24a5193b34d714464399a5b4fee418301ad26621 Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Fri, 20 Sep 2024 09:53:18 +0200 Subject: [PATCH] meta(changelog): Add PR link to changelog entry --- scripts/get-commit-list.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/get-commit-list.ts b/scripts/get-commit-list.ts index 3992694cf8f0..bceccfb317de 100644 --- a/scripts/get-commit-list.ts +++ b/scripts/get-commit-list.ts @@ -24,8 +24,11 @@ function run(): void { newCommits.sort((a, b) => a.localeCompare(b)); + const issueUrl = 'https://github.com/getsentry/sentry-javascript/pull/'; + const newCommitsWithLink = newCommits.map(commit => commit.replace(/#(\d+)/, `[#$1](${issueUrl}$1)`)); + // eslint-disable-next-line no-console - console.log(newCommits.join('\n')); + console.log(newCommitsWithLink.join('\n')); } run();