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 <[email protected]>
This commit is contained in:
Alexey AlekhinandArdalan Amini authored and GitHub committed 2020-10-17 16:38:30 +03:30
1 parent e2ed19a3f1
commit ebb68f8915
1 file changed
+1 -1
+1 -1
View File
@@ -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) || [];