Skip to content

Commit

Permalink
fix: display/use tag name from release
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Oct 4, 2024
1 parent 18ca6e5 commit 2fd0278
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/DashboardCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ private static function formatLatest(?Release $release): string
}

if ($release->isPreRelease()) {
return "<comment>{$release}</comment>";
return "<comment>{$release->tagName()}</comment>";
}

return "<info>{$release}</info>";
return "<info>{$release->tagName()}</info>";
}

private static function formatChangelog(Repository $repository): string
Expand All @@ -149,7 +149,7 @@ private static function releaseStatus(Repository $repository): string
}

$unreleased = $repository
->compare($repository->defaultBranch(), $latest)
->compare($repository->defaultBranch(), $latest->tagName())
->commits()
->count()
;
Expand Down

0 comments on commit 2fd0278

Please sign in to comment.