Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/VCS/Adapter/Git/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public function getUser(string $username): array
* Get owner name of the GitHub installation
*
* @param string $installationId GitHub App installation ID
* @param int|null $repositoryId Not used by GitHub (parameter exists for Gitea compatibility)
* @param int|null $repositoryId Not used by GitHub (parameter exists for this adapter compatibility)
* @return string Owner login/username
*/
public function getOwnerName(string $installationId, ?int $repositoryId = null): string
Expand Down
10 changes: 5 additions & 5 deletions src/VCS/Adapter/Git/Gitea.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,18 @@ public function initializeVariables(string $installationId, string $privateKey,
return;
}

throw new Exception("accessToken is required for Gitea adapter.");
throw new Exception("accessToken is required for this adapter.");
}

/**
* Generate Access Token
*
* Note: This method is required by the Adapter interface but is not used for Gitea.
* Note: This method is required by the Adapter interface but is not used for this adapter.
* Gitea uses OAuth2 tokens that are provided directly via initializeVariables().
*/
protected function generateAccessToken(string $privateKey, string $appId): void
{
// Not applicable for Gitea - OAuth2 tokens are passed directly
// Not applicable for this adapter - OAuth2 tokens are passed directly
return;
}

Expand Down Expand Up @@ -224,7 +224,7 @@ public function searchRepositories(string $owner, int $page, int $per_page, stri
*/
public function getInstallationRepository(string $repositoryName): array
{
throw new Exception("getInstallationRepository is not applicable for Gitea - use getRepository() with owner and repo name instead");
throw new Exception("getInstallationRepository is not applicable for this adapter - use getRepository() with owner and repo name instead");
}

public function getRepository(string $owner, string $repositoryName): array
Expand Down Expand Up @@ -608,7 +608,7 @@ public function getUser(string $username): array
public function getOwnerName(string $installationId, ?int $repositoryId = null): string
{
if ($repositoryId === null || $repositoryId <= 0) {
throw new Exception("repositoryId is required for Gitea");
throw new Exception("repositoryId is required for this adapter");
}

$url = "/repositories/{$repositoryId}";
Expand Down
Loading
Loading