diff --git a/build/index.js b/build/index.js index 89b87f4..be7cfd0 100644 --- a/build/index.js +++ b/build/index.js @@ -35358,7 +35358,11 @@ class ChangeLogGenerator { } let headerAdded = false; for (const commit of commits) { - const typeWithSubject = commit.message.match(/^([A-Za-z0-9-_](.*?))\!?:/); + const newLinePosition = commit.message.indexOf("\n"); + const head = newLinePosition === -1 + ? commit.message + : commit.message.slice(0, newLinePosition); + const typeWithSubject = head.match(/^([A-Za-z0-9-_](.*?))\!?:/); if (!typeWithSubject) { continue; } @@ -35366,7 +35370,7 @@ class ChangeLogGenerator { notes += `### ${ChangeLogGenerator.COMMIT_CLASSIFICATION[key]}\n`; headerAdded = true; } - notes += `* [[${commit.shortId}](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})] **${typeWithSubject[1]}**: ${commit.message}\n`; + notes += `* [[${commit.shortId}](https://github.com/${githubUsername}/${githubRepo}/commit/${commit.id})] **${typeWithSubject[1]}**: ${head.replace(/^([A-Za-z0-9-_](.*?))\!?:/, "").trim()}\n`; } if (headerAdded) { notes += "\n";