Skip to content

Commit

Permalink
meta(changelog): Add PR link to changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Sep 20, 2024
1 parent cf0152a commit 24a5193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/get-commit-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 24a5193

Please sign in to comment.