commitRelease method
void
commitRelease(})
Implementation
void commitRelease(
Version newVersion,
String workingDirectory, {
required bool usingGit,
required bool autoAnswer,
required bool dryrun,
}) {
if (usingGit && !dryrun) {
final git = Git(workingDirectory);
print('Commiting all modified files.');
git
..commitAll('Released $newVersion.')
..pushReleaseTag(newVersion, autoAnswer: autoAnswer);
}
}