Skip to content

Commit

Permalink
feat: verbose logging now logs package commit messages when versioning (
Browse files Browse the repository at this point in the history
  • Loading branch information
huang12zheng authored Dec 6, 2021
1 parent 394f9df commit b87fb8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/melos/lib/src/commands/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ Hint: try running "melos version --all" to include private packages.
updateDependentsConstraints: updateDependentsConstraints,
);

// show commit message
for (final element in pendingPackageUpdates) {
logger.trace(AnsiStyles.yellow.bold(element.package.name));
for (final e in element.commits) {
logger.trace(' ${e.message}');
}
}

final shouldContinue = force || promptBool();
if (!shouldContinue) {
logger.stdout(AnsiStyles.red('Operation was canceled.'));
Expand Down

0 comments on commit b87fb8d

Please sign in to comment.