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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: not found base_branch in git webhooks
Andras Bacsaifebc399568e1
diff --git a/config/sentry.php b/config/sentry.phpindex f5ec7b6ab5..b34772125b 100644--- a/config/sentry.php+++ b/config/sentry.php@@ -7,7 +7,7 @@ return [// The release version of your application// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))- 'release' => '4.0.0-beta.52',+ 'release' => '4.0.0-beta.53',// When left empty or `null` the Laravel environment will be used'environment' => config('app.env'),diff --git a/config/version.php b/config/version.phpindex 42439e4bb9..c90e8cda6b 100644--- a/config/version.php+++ b/config/version.php@@ -1,3 +1,3 @@<?php-return '4.0.0-beta.52';+return '4.0.0-beta.53';diff --git a/routes/webhooks.php b/routes/webhooks.phpindex 5f27ed22b3..d7b645fb3c 100644--- a/routes/webhooks.php+++ b/routes/webhooks.php@@ -111,13 +111,17 @@ Route::post('/source/github/events', function () {$applications = Application::where('repository_project_id', $id)->whereRelation('source', 'is_public', false);if ($x_github_event === 'push') {$applications = $applications->where('git_branch', $branch)->get();+ if ($applications->isEmpty()) {+ return response("Nothing to do. No applications found with branch '$branch'.");+ }}if ($x_github_event === 'pull_request') {$applications = $applications->where('git_branch', $base_branch)->get();+ if ($applications->isEmpty()) {+ return response("Nothing to do. No applications found with branch '$base_branch'.");+ }}- if ($applications->isEmpty()) {- return response("Nothing to do. No applications found with branch '$base_branch'.");- }+foreach ($applications as $application) {$isFunctional = $application->destination->server->isFunctional();if (!$isFunctional) {diff --git a/versions.json b/versions.jsonindex 49b23e57d8..08a7384899 100644--- a/versions.json+++ b/versions.json@@ -4,7 +4,7 @@"version": "3.12.36"},"v4": {- "version": "4.0.0-beta.52"+ "version": "4.0.0-beta.53"}}}