From 86939cb5480c61d74d7d59e51981c338f13cdbd7 Mon Sep 17 00:00:00 2001 From: Rob Lambell Date: Wed, 1 Nov 2023 15:59:35 +0000 Subject: [PATCH] feat: only consider the most recent commit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 750788e..b3825ab 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,7 @@ async function main () { const majorChanges = [] const minorChanges = [] const patchChanges = [] - for (const commit of commits) { + for (const commit of commits.slice(-1)) { try { const cAst = cc.toConventionalChangelogFormat(cc.parser(commit.commit.message)) if (bumpTypes.major.includes(cAst.type)) {