Skip to content

Commit

Permalink
fix: use plaintext formatting in release commit (nodejs#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored May 11, 2020
1 parent 88d9c61 commit 8e6ac47
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class ReleasePreparation {

const notableChanges = this.getBranchDiff({
onlyNotableChanges: true,
simple: true
format: 'plaintext'
});
messageBody.push('Notable changes:\n\n');
messageBody.push(notableChanges);
Expand Down Expand Up @@ -431,12 +431,9 @@ class ReleasePreparation {
branchDiffOptions = [
`${upstream}/${releaseBranch}`,
proposalBranch,
`--require-label=${notableLabels.join(',')}`
`--require-label=${notableLabels.join(',')}`,
`--format=${opts.format || 'markdown'}`
];

if (opts.simple) {
branchDiffOptions.push('--simple');
}
} else {
const excludeLabels = [
'semver-major',
Expand Down

0 comments on commit 8e6ac47

Please sign in to comment.