Skip to content

Commit

Permalink
feat: Added option to enable/disable git commit of the versionbump
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Sep 24, 2024
1 parent 69ef43f commit c16c699
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.15.0

## Added

- Choose if you want to commit the version bump or not (even if it is a git repo)

# 0.14.2

## Fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {
Future<int> versionBump({
String? flavor,
String? suffix,
bool commitChanges = true,
}) async {
ImpaktfullCliLogger.setSpinnerPrefix('VersionBump');
ImpaktfullCliLogger.startSpinner('Validating git clean');
Expand Down Expand Up @@ -62,7 +63,7 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {
}
final encoder = JsonEncoder.withIndent(' ');
file.writeAsStringSync(encoder.convert(newConfigData));
if (isGitProject) {
if (commitChanges && isGitProject) {
await processRunner.runProcess([
'git',
'add',
Expand Down

0 comments on commit c16c699

Please sign in to comment.