Skip to content

Commit 0970cf4

Browse files
committed
Bump script: only print "VCS plugins changes:" if there are any
1 parent f331c7d commit 0970cf4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/bump-version.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,13 @@ function bump_version_and_commit( $p_version, &$p_framework_version ) {
146146
}
147147

148148
// Generate commit message
149-
$t_message = "Bump version to $t_new_version\n\n";
150-
$t_message .= "VCS plugins changes:\n";
151-
foreach( get_changed_plugins() as $t_plugin ) {
152-
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
149+
$t_message = "Bump version to $t_new_version";
150+
$t_changed_plugins = get_changed_plugins();
151+
if( $t_changed_plugins ) {
152+
$t_message .= "\n\nVCS plugins changes:\n";
153+
foreach( $t_changed_plugins as $t_plugin ) {
154+
$t_message .= "- $t_plugin " . $g_plugins[$t_plugin] . "\n";
155+
}
153156
}
154157

155158
// Commit

0 commit comments

Comments
 (0)