Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix github change

Andras Bacsaid931d57373aa
diff --git a/app/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.php
index 858562e2ab..cfea6fe9d3 100644
--- a/app/Livewire/Source/Github/Change.php
+++ b/app/Livewire/Source/Github/Change.php
@@ -88,7 +88,20 @@ class Change extends Component
{
try {
$this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');
- $this->validate();
+ $this->validate([
+ 'github_app.name' => 'required|string',
+ 'github_app.organization' => 'nullable|string',
+ 'github_app.api_url' => 'required|string',
+ 'github_app.html_url' => 'required|string',
+ 'github_app.custom_user' => 'required|string',
+ 'github_app.custom_port' => 'required|int',
+ 'github_app.app_id' => 'required|int',
+ 'github_app.installation_id' => 'required|int',
+ 'github_app.client_id' => 'required|string',
+ 'github_app.client_secret' => 'required|string',
+ 'github_app.webhook_secret' => 'required|string',
+ 'github_app.is_system_wide' => 'required|bool',
+ ]);
$this->github_app->save();
$this->dispatch('success', 'Github App updated successfully.');
} catch (\Throwable $e) {
@@ -98,7 +111,6 @@ class Change extends Component
public function instantSave()
{
- $this->submit();
}
public function delete()