1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-26 21:12:59 +02:00

Tools: Add commit links to changelog

This commit is contained in:
Laurent Cozic 2022-04-20 17:01:40 +01:00
parent aa503aee3e
commit 8a65bb5818

View File

@ -51,7 +51,8 @@ function createChangeLog(releases) {
const preReleaseString = r.prerelease ? ' (Pre-release)' : '';
s.push(`## ${r.tag_name}${preReleaseString} - ${r.published_at}`);
s.push('');
const body = r.body.replace(/#(\d+)/g, '[#$1](https://github.com/laurent22/joplin/issues/$1)');
let body = r.body.replace(/#(\d+)/g, '[#$1](https://github.com/laurent22/joplin/issues/$1)');
body = body.replace(/\(([0-9a-z]{7})\)/g, '([$1](https://github.com/laurent22/joplin/commit/$1))');
s.push(body);
output.push(s.join('\n'));
}