fix: webhook endpoint in cloud and no system wide gh app

This commit is contained in:
Andras Bacsai
2023-08-28 21:03:07 +02:00
parent b4a3236284
commit d28cf0b76d
2 changed files with 27 additions and 19 deletions

View File

@@ -37,9 +37,13 @@ class Change extends Component
public function mount()
{
$this->webhook_endpoint = $this->ipv4;
if (is_cloud()) {
$this->webhook_endpoint = config('app.url');
} else {
$this->webhook_endpoint = $this->ipv4;
$this->is_system_wide = $this->github_app->is_system_wide;
}
$this->parameters = get_route_parameters();
$this->is_system_wide = $this->github_app->is_system_wide;
}
public function submit()