diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index 89de4704362aea..8b38505b37c53c 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'; }