From 864f90762f1ed2f396c4d2c7f80766727baf6aee Mon Sep 17 00:00:00 2001 From: stonebuzz Date: Thu, 31 Aug 2023 15:47:33 +0200 Subject: [PATCH] fix(release): fix generated ChangeLog --- RoboFile.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index f8c45ab85..313af019b 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -123,7 +123,9 @@ public static function buildLog($a, $b = 'HEAD', $with_head = true) { $startRef = $endRef; } - $log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head)); + if ($with_head) { + $log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head)); + } return $log; } @@ -177,7 +179,7 @@ public static function buildLogOneBump($a, $b, $with_head = true) { $compare .= Git::getCurrentBranch(); } - if ($with_head) { + if ($with_head && $tag !== 'HEAD') { $log[] = ''; $log[] = '## [' . $tag . '](' . $compare . ') (' . $tagDate . ')'; }