Skip to content

Commit

Permalink
Merge pull request #25 from kbond/fix/tag-name
Browse files Browse the repository at this point in the history
Fix/tag name
  • Loading branch information
kbond authored Oct 4, 2024
2 parents 18ca6e5 + 285e9e5 commit 9261730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion src/Github/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")
);
}

Expand Down

0 comments on commit 9261730

Please sign in to comment.