diff --git a/src/Command/DashboardCommand.php b/src/Command/DashboardCommand.php index 46a5ae4..ac7ea99 100644 --- a/src/Command/DashboardCommand.php +++ b/src/Command/DashboardCommand.php @@ -125,10 +125,10 @@ private static function formatLatest(?Release $release): string } if ($release->isPreRelease()) { - return "{$release}"; + return "{$release->tagName()}"; } - return "{$release}"; + return "{$release->tagName()}"; } private static function formatChangelog(Repository $repository): string @@ -149,7 +149,7 @@ private static function releaseStatus(Repository $repository): string } $unreleased = $repository - ->compare($repository->defaultBranch(), $latest) + ->compare($repository->defaultBranch(), $latest->tagName()) ->commits() ->count() ; diff --git a/src/Github/Repository.php b/src/Github/Repository.php index 7a62d9a..0cf9ce6 100644 --- a/src/Github/Repository.php +++ b/src/Github/Repository.php @@ -45,7 +45,7 @@ public static function forOrganization(string $name, Api $api): array { return \array_map( static fn(array $data) => new self($data, $api), - $api->request('GET', "/orgs/{$name}/repos?type=public") + $api->request('GET', "/orgs/{$name}/repos?type=public&per_page=100") ); }