From 8373d47f80ceae7643e973ce00e22bbaf1d02f31 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 12 Aug 2021 17:50:28 +0100 Subject: [PATCH 1/3] Remove "Uncategorized" header in output and place items at top --- bin/plugin/commands/changelog.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index 75aa7a2e0b6b4..3b18d4ed60bbb 100644 --- a/bin/plugin/commands/changelog.js +++ b/bin/plugin/commands/changelog.js @@ -673,9 +673,11 @@ async function getChangelog( settings ) { return; } + const shouldNest = featureName !== UNKNOWN_FEATURE_FALLBACK_NAME; + // Avoids double nesting such as "Documentation" feature under // the "Documentation" section. - if ( group !== featureName ) { + if ( group !== featureName && shouldNest ) { // Start new