From ebb68f89157669b2cad241fef9e8ed004e0014f2 Mon Sep 17 00:00:00 2001 From: Alexey Alekhin Date: Sat, 17 Oct 2020 15:08:30 +0200 Subject: [PATCH] fix: Include multi-line commits in the changelog (#4) * Allow multiline commit messages * fix: Not matching multi-line commit messages Co-authored-by: Ardalan Amini --- src/changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/changelog.ts b/src/changelog.ts index 95473f6..33a0c9f 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -25,7 +25,7 @@ export async function generate( for (const { sha, ...commit } of data) { if (sha === tagRef) break paginator; - const message = commit.commit.message; + const message = commit.commit.message.split("\n")[0]; let [, type, category, title, flag] = COMMIT_REGEX.exec(message) || [];