Skip to content

Commit

Permalink
fix(release): fix generated ChangeLog
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Aug 31, 2023
1 parent 92d7c82 commit 864f907
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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[] = '<a name="' . $tag . '"></a>';
$log[] = '## [' . $tag . '](' . $compare . ') (' . $tagDate . ')';
}
Expand Down

0 comments on commit 864f907

Please sign in to comment.