fix: fix increment

This commit is contained in:
marcin 2023-03-29 15:19:00 +01:00
parent ad90df1fce
commit 35fc660a00
No known key found for this signature in database
GPG key ID: 524860A885021BCB
7 changed files with 18 additions and 18 deletions

View file

@ -3,6 +3,6 @@ repos:
rev: v1.1.1
hooks:
- id: trailing-whitespace
exclude: ^version.json
exclude: ^dist/*

2
dist/index.js vendored
View file

@ -912,7 +912,7 @@ class DefaultVersionClassifier {
const currentIncremement = versionsMatch ? increment : 0;
return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch);
}
return new VersionClassification_1.VersionClassification(type, increment, changed, major, minor, patch);
return new VersionClassification_1.VersionClassification(type, type !== VersionType_1.VersionType.None ? 0 : increment, changed, major, minor, patch);
});
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -97,7 +97,7 @@ class DefaultVersionClassifier {
const currentIncremement = versionsMatch ? increment : 0;
return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch);
}
return new VersionClassification_1.VersionClassification(type, increment, changed, major, minor, patch);
return new VersionClassification_1.VersionClassification(type, type !== VersionType_1.VersionType.None ? 0 : increment, changed, major, minor, patch);
});
}
}

View file

@ -110,6 +110,6 @@ export class DefaultVersionClassifier implements VersionClassifier {
}
return new VersionClassification(type, increment, changed, major, minor, patch);
return new VersionClassification(type, type !== VersionType.None ? 0 : increment, changed, major, minor, patch);
}
}