Skip to content

Commit

Permalink
feat: only consider the most recent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roblambell authored Nov 1, 2023
1 parent 84d3422 commit 86939cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 86939cb

Please sign in to comment.