Skip to content

Commit fb9edec

Browse files
committed
fix: create release commit w/o markdown
1 parent 7e8f11a commit fb9edec

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/prepare_release.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ class ReleasePreparation {
376376
messageBody.push('This is a security release.\n\n');
377377
}
378378

379-
const notableChanges = this.getBranchDiff({ onlyNotableChanges: true });
379+
const notableChanges = this.getBranchDiff({
380+
onlyNotableChanges: true,
381+
simple: true
382+
});
380383
messageBody.push('Notable changes:\n\n');
381384
messageBody.push(notableChanges);
382385

@@ -429,8 +432,11 @@ class ReleasePreparation {
429432
`${upstream}/${releaseBranch}`,
430433
proposalBranch,
431434
`--require-label=${notableLabels.join(',')}`,
432-
'-format=simple'
433435
];
436+
437+
if (opts.simple) {
438+
branchDiffOptions.push('--simple')
439+
}
434440
} else {
435441
const excludeLabels = [
436442
'semver-major',
@@ -455,8 +461,7 @@ class ReleasePreparation {
455461
// TODO(codebytere): use Current branch instead of master for LTS
456462
comparisonBranch,
457463
`--exclude-label=${excludeLabels.join(',')}`,
458-
'--filter-release',
459-
'--format=simple'
464+
'--filter-release'
460465
];
461466
}
462467

0 commit comments

Comments
 (0)