Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: create release commit w/o markdown
  • Loading branch information
codebytere committed Mar 11, 2020
commit 15bbc23bdf7dc4d4749a43cca737095dc2efb70f
4 changes: 2 additions & 2 deletions components/git/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const PROMOTE = 'promote';

const releaseOptions = {
prepare: {
describe: 'Prepare a new release with the given version number',
describe: 'Prepare a new release of Node.js',
type: 'boolean'
},
promote: {
describe: 'Promote new release with the given version number',
describe: 'Promote new release of Node.js',
type: 'boolean'
},
security: {
Expand Down
13 changes: 9 additions & 4 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ class ReleasePreparation {
messageBody.push('This is a security release.\n\n');
}

const notableChanges = this.getBranchDiff({ onlyNotableChanges: true });
const notableChanges = this.getBranchDiff({
onlyNotableChanges: true,
simple: true
});
messageBody.push('Notable changes:\n\n');
messageBody.push(notableChanges);

Expand Down Expand Up @@ -429,8 +432,11 @@ class ReleasePreparation {
`${upstream}/${releaseBranch}`,
proposalBranch,
`--require-label=${notableLabels.join(',')}`,
'-format=simple'
];

if (opts.simple) {
branchDiffOptions.push('--simple')
}
} else {
const excludeLabels = [
'semver-major',
Expand All @@ -455,8 +461,7 @@ class ReleasePreparation {
// TODO(codebytere): use Current branch instead of master for LTS
comparisonBranch,
`--exclude-label=${excludeLabels.join(',')}`,
'--filter-release',
'--format=simple'
'--filter-release'
];
}

Expand Down