fix(gitea) : fetch only branch-specific commits using compare API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 08:16:55 +01:00
parent f888a29e0a
commit 445f51b473
3 changed files with 17 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ final readonly class GiteaBranchProvider implements ProviderInterface
$dto->name = $branch['name'];
try {
$commits = $this->giteaApiService->listCommits($project, $branch['name']);
$commits = $this->giteaApiService->listBranchCommits($project, $branch['name']);
$dto->commits = array_map(static fn (array $c): array => [
'sha' => substr($c['sha'] ?? '', 0, 7),
'message' => $c['commit']['message'] ?? '',