mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(release scripts): group changelog only if more than 1 entry
This commit is contained in:
parent
93d62860e9
commit
7c430c5ed0
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue