mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
#591 - source-controls
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\SourceControlProviders;
|
||||
|
||||
use App\Exceptions\FailedToDeployGitHook;
|
||||
use App\Exceptions\FailedToDeployGitKey;
|
||||
use App\Exceptions\FailedToDestroyGitHook;
|
||||
|
||||
@ -19,18 +20,6 @@ public function createRules(array $input): array;
|
||||
*/
|
||||
public function createData(array $input): array;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function editRules(array $input): array;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $input
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function editData(array $input): array;
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
@ -43,10 +32,10 @@ public function getRepo(string $repo): mixed;
|
||||
public function fullRepoUrl(string $repo, string $key): string;
|
||||
|
||||
/**
|
||||
* @param array<mixed> $events
|
||||
* @param array<int, mixed> $events
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
* @throws \App\Exceptions\FailedToDeployGitHook
|
||||
* @throws FailedToDeployGitHook
|
||||
*/
|
||||
public function deployHook(string $repo, array $events, string $secret): array;
|
||||
|
||||
@ -56,7 +45,7 @@ public function deployHook(string $repo, array $events, string $secret): array;
|
||||
public function destroyHook(string $repo, string $hookId): void;
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getLastCommit(string $repo, string $branch): ?array;
|
||||
|
||||
|
Reference in New Issue
Block a user