Skip to content

Commit

Permalink
Merge pull request #1 from boughtbymany/feat/only-consider-the-most-r…
Browse files Browse the repository at this point in the history
…ecent-commit

feat: only consider the most recent commit
  • Loading branch information
roblambell authored Nov 1, 2023
2 parents 84d3422 + cc93640 commit eeaf892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31196,7 +31196,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
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 eeaf892

Please sign in to comment.