From 331749b7acec3aaf1d9228e3d57b471dcec9079d Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 12 Aug 2021 17:52:40 +0100 Subject: [PATCH] Make compatible with changes to use headings instead of bullets --- bin/plugin/commands/changelog.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index a7f9f1df0e093b..89de4704362aea 100644 --- a/bin/plugin/commands/changelog.js +++ b/bin/plugin/commands/changelog.js @@ -673,11 +673,12 @@ 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 && shouldNest ) { + if ( + group !== featureName && + featureName !== UNKNOWN_FEATURE_FALLBACK_NAME + ) { // Start new