From 9483157bbdcebf74bf27ef59a86b3f649bf6d8f3 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 12 Aug 2021 13:13:23 +0100 Subject: [PATCH] Manually force all docs tasks to be grouped under the primary documentation section --- bin/plugin/commands/changelog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index 89de4704362ae..8b38505b37c53 100644 --- a/bin/plugin/commands/changelog.js +++ b/bin/plugin/commands/changelog.js @@ -283,6 +283,12 @@ function getIssueType( issue ) { ...getTypesByTitle( issue.title ), ]; + // Force all tasks identified as Documentation tasks + // to appear under the main "Documentation" section. + if ( candidates.includes( 'Documentation' ) ) { + return 'Documentation'; + } + return candidates.length ? candidates.sort( sortType )[ 0 ] : 'Various'; }