Skip to content

Commit a1785c1

Browse files
committed
only modify changelog on release
1 parent 3cfdff0 commit a1785c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/update_version.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,18 +401,18 @@ class AutoUpdateCommand extends Command {
401401
final type = argResults!['type'].toString();
402402
final isDryRun = argResults!['dry-run'];
403403
final currentVersion = versionFromPubspecFile();
404-
bool modifyChangeLog = true;
404+
bool modifyChangeLog = false;
405405
String? newVersion;
406406
if (currentVersion == null) {
407407
throw 'Could not automatically determine current version.';
408408
}
409409
switch (type) {
410410
case 'release':
411411
newVersion = stripPreReleases(currentVersion);
412+
modifyChangeLog = true;
412413
break;
413414
case 'dev':
414415
newVersion = incrementDevVersion(currentVersion);
415-
modifyChangeLog = false;
416416
break;
417417
default:
418418
newVersion = incrementVersionByType(currentVersion, type);

0 commit comments

Comments
 (0)