Lines Matching full:sections
52 * Flatten the configuration's sections list. This helps us iterate over all of the sections
56 const flattenSections = function (sections) { argument
57 return sections.flatMap(section => {
58 const subsections = flattenSections(section.sections || []);
64 const flattenedSections = flattenSections(config.sections);
71 const generateTemplateData = function (sections, notes) { argument
72 return (sections || []).flatMap(section => {
75 sections: generateTemplateData(section.sections, notes),
80 * Don't return a section if it contains no notes and no sub-sections.
82 if ((templateData.sections.length == 0) && (templateData.notes.length == 0)) {
93 sections: generateTemplateData(config.sections, noteGroup.notes),
105 const generateTemplateData = function (sections, commits) { argument
106 return (sections || []).flatMap(section => {
109 sections: generateTemplateData(section.sections, commits),
114 * Don't return a section if it contains no notes and no sub-sections.
116 if ((templateData.sections.length == 0) && (templateData.commits.length == 0)) {
127 sections: generateTemplateData(config.sections, commitGroup.commits),
148 * Register the partials that allow us to recursively create changelog sections.