Merge branch 'release-1.14'

This commit is contained in:
antelle 2020-04-18 10:52:07 +02:00
commit 61c44057cb
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 9 additions and 1 deletions

View File

@ -411,11 +411,19 @@ async function run() {
const regex = new RegExp(
`#####\\s+v${version.replace(/\./g, '\\.')}.*?\n([\\s\\S]*?)\n#####`
);
const body = releaseNotes
const bodyReleaseNotes = releaseNotes
.match(regex)[1]
.trim()
.replace(/\s*\n/g, '\n');
const bodyTemplate =
'{release_notes}\n\n' +
'Want to keep releases happening? ' +
'Donate to KeeWeb on [OpenCollective](https://opencollective.com/keeweb). ' +
'Thank you!';
const body = bodyTemplate.replace('{release_notes}', bodyReleaseNotes);
console.log(`Updating release with notes:\n${body}`);
await github.repos.updateRelease({