chore(release scripts): group changelog only if more than 1 entry

This commit is contained in:
Vojta Jina 2012-04-11 16:11:03 -07:00
parent 93d62860e9
commit 7c430c5ed0

View file

@ -85,7 +85,6 @@ var currentDate = function() {
var printSection = function(stream, title, section) {
var NESTED = true;
var components = Object.getOwnPropertyNames(section).sort();
if (!components.length) return;
@ -94,9 +93,10 @@ var printSection = function(stream, title, section) {
components.forEach(function(name) {
var prefix = '-';
var nested = section[name].length > 1;
if (name !== EMPTY_COMPONENT) {
if (NESTED) {
if (nested) {
stream.write(util.format('- **%s:**\n', name));
prefix = ' -';
} else {