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)) {