Skip to content

Commit

Permalink
fix: use plaintext formatting in release commit (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alicia Lopez committed May 11, 2020
1 parent d341bff commit adaf274
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 adaf274

Please sign in to comment.