Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(release scripts): group changelog only if more than 1 entry
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Apr 11, 2012
1 parent 93d6286 commit 7c430c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 7c430c5

Please sign in to comment.