% const breakingChanges = []; for (const commit of commits) { const breakingChange = commit.notes.find(c => c.title === 'BREAKING CHANGE'); if (breakingChange) { breakingChanges.push({ scope: commit.scope, subject: commit.subject, shortSha: commit.hash.slice(0, 7), hash: commit.hash, breakingText: breakingChange.text, }); } } if (breakingChanges.length) { %> # Breaking Changes <% for (const commit of breakingChanges) { %>