Skip to content

Commit dbfd8e2

Browse files
authored
meta(changelog): Add PR link to changelog entry (#13735)
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)) > ```
1 parent 97974ba commit dbfd8e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/get-commit-list.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ function run(): void {
2424

2525
newCommits.sort((a, b) => a.localeCompare(b));
2626

27+
const issueUrl = 'https://github.com/getsentry/sentry-javascript/pull/';
28+
const newCommitsWithLink = newCommits.map(commit => commit.replace(/#(\d+)/, `[#$1](${issueUrl}$1)`));
29+
2730
// eslint-disable-next-line no-console
28-
console.log(newCommits.join('\n'));
31+
console.log(newCommitsWithLink.join('\n'));
2932
}
3033

3134
run();

0 commit comments

Comments
 (0)