getNextVersionFromString method
Implementation
Future<String> getNextVersionFromString(
List<Commit> commits,
String currentVersion, {
bool incrementBuild = false,
bool noBuild = false,
bool ensureMajor = false,
}) async {
final previousVersion = Version.parse(currentVersion);
final newVersion = nextVersion(
previousVersion,
commits,
incrementBuild: incrementBuild,
afterV1: ensureMajor,
);
return (noBuild ? versionWithoutBuild(newVersion) : newVersion).toString();
}