Skip to content

Commit a21f963

Browse files
committed
fix: use messageonly type when notable-changes sec release
Partially fixes: nodejs-private/security-release#48
1 parent f6dda1c commit a21f963

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/prepare_release.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,10 @@ export default class ReleasePreparation extends Session {
481481
const data = await fs.readFile(majorChangelogPath, 'utf8');
482482
const arr = data.split('\n');
483483
const allCommits = this.getChangelog();
484-
const notableChanges = await this.getBranchDiff({ onlyNotableChanges: true });
484+
const notableChanges = await this.getBranchDiff({
485+
onlyNotableChanges: true,
486+
format: isSecurityRelease ? 'messageonly' : 'markdown',
487+
});
485488
let releaseHeader = `## ${date}, Version ${newVersion}` +
486489
` ${releaseInfo}, @${username}\n`;
487490
if (isSecurityRelease) {

0 commit comments

Comments
 (0)