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

Commit 7c430c5

Browse files
committed
chore(release scripts): group changelog only if more than 1 entry
1 parent 93d6286 commit 7c430c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

changelog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ var currentDate = function() {
8585

8686

8787
var printSection = function(stream, title, section) {
88-
var NESTED = true;
8988
var components = Object.getOwnPropertyNames(section).sort();
9089

9190
if (!components.length) return;
@@ -94,9 +93,10 @@ var printSection = function(stream, title, section) {
9493

9594
components.forEach(function(name) {
9695
var prefix = '-';
96+
var nested = section[name].length > 1;
9797

9898
if (name !== EMPTY_COMPONENT) {
99-
if (NESTED) {
99+
if (nested) {
100100
stream.write(util.format('- **%s:**\n', name));
101101
prefix = ' -';
102102
} else {

0 commit comments

Comments
 (0)