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:
parent
aa503aee3e
commit
8a65bb5818
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user