mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
refactoring
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user