add auto-deployment (#71)

add update source-control to site-settings
This commit is contained in:
Saeed Vaziry
2023-10-29 22:20:15 +01:00
committed by GitHub
parent 700cc5f44c
commit 1bf3c94358
33 changed files with 384 additions and 126 deletions

View File

@ -46,7 +46,7 @@ public function deployHook(string $repo, array $events, string $secret): array
{
$response = Http::withToken($this->sourceControl->access_token)->post($this->apiUrl."/repositories/$repo/hooks", [
'description' => 'deploy',
'url' => url('/git-hooks?secret='.$secret),
'url' => url('/api/git-hooks?secret='.$secret),
'events' => [
'repo:'.implode(',', $events),
],