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

@ -53,7 +53,7 @@ public function deployHook(string $repo, array $events, string $secret): array
$this->getApiUrl().'/projects/'.$repository.'/hooks',
[
'description' => 'deploy',
'url' => url('/git-hooks?secret='.$secret),
'url' => url('/api/git-hooks?secret='.$secret),
'push_events' => in_array('push', $events),
'issues_events' => false,
'job_events' => false,