diff --git a/app/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.php index c702d80f4..1470b95db 100644 --- a/app/Livewire/Source/Github/Change.php +++ b/app/Livewire/Source/Github/Change.php @@ -23,6 +23,8 @@ class Change extends Component public string $custom_webhook_endpoint = ''; + public bool $use_custom_webhook_endpoint = false; + public ?string $ipv4 = null; public ?string $ipv6 = null; @@ -101,6 +103,7 @@ class Change extends Component 'privateKeyId' => 'nullable|int', 'webhook_endpoint' => ['required', 'string', 'url'], 'custom_webhook_endpoint' => ['nullable', 'string', 'url'], + 'use_custom_webhook_endpoint' => ['required', 'bool'], ]; } diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php index 31c1d0276..d52e35646 100644 --- a/resources/views/livewire/source/github/change.blade.php +++ b/resources/views/livewire/source/github/change.blade.php @@ -240,6 +240,7 @@
@@ -262,27 +263,35 @@
@if (!isCloud() || isDev()) - - @if ($fqdn) - - @endif - @if ($ipv4) - - @endif - @if ($ipv6) - - @endif - @if (config('app.url')) - - @endif - - + +
+ + @if ($fqdn) + + @endif + @if ($ipv4) + + @endif + @if ($ipv6) + + @endif + @if (config('app.url')) + + @endif + +
+
+ +
@else
You need to register a GitHub App before using this source.
@endif @@ -296,7 +305,7 @@
+ x-on:click.prevent="createGithubApp(webhookEndpoint, useCustomWebhookEndpoint, customWebhookEndpoint, {{ Illuminate\Support\Js::from($preview_deployment_permissions) }}, {{ Illuminate\Support\Js::from($administration) }})"> Register Now
@@ -339,7 +348,7 @@