Skip to content

Commit

Permalink
meta(changelog): Add PR link to changelog entry (#13735)
Browse files Browse the repository at this point in the history
Adds the PR link to the changelog for easier access.

An entry would look like this:

> - feat(node): Add `dataloader` integration
([#13664](#13664))
> ```
> - feat(node): Add `dataloader` integration
([#13664](#13664))
> ```
  • Loading branch information
s1gr1d committed Sep 20, 2024
1 parent 97974ba commit dbfd8e2
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 dbfd8e2

Please sign in to comment.