fix: allow empty release notes in dry-run mode

This commit is contained in:
Pierre Vanduynslager
2018-07-10 11:42:22 -04:00
parent a39ccb8f6c
commit 5847514fcc
2 changed files with 40 additions and 1 deletions
+3 -1
View File
@@ -103,7 +103,9 @@ async function run(options, plugins) {
logger.log('Call plugin %s', 'generate-notes');
const notes = await plugins.generateNotes(generateNotesParam);
logger.log('Release note for version %s:\n', nextRelease.version);
process.stdout.write(`${marked(notes)}\n`);
if (notes) {
process.stdout.write(`${marked(notes)}\n`);
}
} else {
logger.log('Call plugin %s', 'generateNotes');
nextRelease.notes = await plugins.generateNotes(generateNotesParam);