refactoring

This commit is contained in:
Saeed Vaziry
2023-08-04 18:28:04 +02:00
parent 8444323cf4
commit 643318fcfc
349 changed files with 3189 additions and 2729 deletions

View File

@ -33,9 +33,9 @@ public function getRepo(string $repo = null): mixed
return $res->json();
}
public function fullRepoUrl(string $repo): string
public function fullRepoUrl(string $repo, string $key): string
{
return "https://x-token-auth:{$this->sourceControl->access_token}@bitbucket.org/$repo.git";
return sprintf("git@bitbucket.org-%s:%s.git", $key, $repo);
}
/**
@ -102,6 +102,11 @@ public function getLastCommit(string $repo, string $branch): ?array
return null;
}
public function deployKey(string $title, string $repo, string $key): void
{
// TODO: Implement deployKey() method.
}
protected function getCommitter(string $raw): array
{
$committer = explode(' <', $raw);