Skip to content

Commit

Permalink
Bump script: only print "VCS plugins changes:" if there are any
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Mar 6, 2017
1 parent f331c7d commit 0970cf4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/bump-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ function bump_version_and_commit( $p_version, &$p_framework_version ) {
}

// Generate commit message
$t_message = "Bump version to $t_new_version\n\n";
$t_message .= "VCS plugins changes:\n";
foreach( get_changed_plugins() as $t_plugin ) {
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
$t_message = "Bump version to $t_new_version";
$t_changed_plugins = get_changed_plugins();
if( $t_changed_plugins ) {
$t_message .= "\n\nVCS plugins changes:\n";
foreach( $t_changed_plugins as $t_plugin ) {
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
}
}

// Commit
Expand Down

0 comments on commit 0970cf4

Please sign in to comment.