mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
fix unhandled source control exceptions (#364)
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Exceptions\FailedToDestroyGitHook;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
@ -55,6 +56,9 @@ public function deployHook(): void
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws FailedToDestroyGitHook
|
||||
*/
|
||||
public function destroyHook(): void
|
||||
{
|
||||
$this->sourceControl->provider()->destroyHook($this->site->repository, $this->hook_id);
|
||||
|
Reference in New Issue
Block a user