Skip to content

Commit

Permalink
fix: version calc has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Apr 4, 2023
1 parent 0f60341 commit 4b5b495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/custom-changelog/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ function calcTrueNewVersionFromLog(currentVersion, changelog) {
}
});
let versions = currentVersion.split(".");
let featsAdd = Math.max(1, Math.ceil(numFeats / 10));
return `${versions[0]}.${parseInt(versions[1]) + featsAdd}.${featsAdd == 0 ? parseInt(versions[2]) + Math.max(1, Math.ceil(numFixes / 10)) : 0}`;
let featsAdd = Math.ceil(numFeats / 10);
return `${versions[0]}.${parseInt(versions[1]) + featsAdd}.${featsAdd == 0 ? parseInt(versions[2]) + Math.ceil(numFixes / 10) : 0}`;
}
function filterChangeLog(changelog) {
let output = [];
Expand Down

0 comments on commit 4b5b495

Please sign in to comment.