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: no action in webhooks
Andras Bacsai468ad7d90436
diff --git a/config/sentry.php b/config/sentry.phpindex 1f17480394..23c9af8bbd 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.163',+ 'release' => '4.0.0-beta.164',// 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 df172e68a7..d9e28384fe 100644--- a/config/version.php+++ b/config/version.php@@ -1,3 +1,3 @@<?php-return '4.0.0-beta.163';+return '4.0.0-beta.164';diff --git a/routes/webhooks.php b/routes/webhooks.phpindex 92280bf21e..ea7f277e7f 100644--- a/routes/webhooks.php+++ b/routes/webhooks.php@@ -67,7 +67,6 @@ Route::post('/source/gitlab/events/manual', function () {try {$payload = request()->collect();$headers = request()->headers->all();- ray($payload, $headers);$x_gitlab_token = data_get($headers, 'x-gitlab-token.0');$x_gitlab_event = data_get($payload, 'object_kind');if ($x_gitlab_event === 'push') {@@ -83,7 +82,6 @@ Route::post('/source/gitlab/events/manual', function () {}if ($x_gitlab_event === 'merge_request') {$action = data_get($payload, 'object_attributes.action');- ray($action);$branch = data_get($payload, 'object_attributes.source_branch');$base_branch = data_get($payload, 'object_attributes.target_branch');$full_name = data_get($payload, 'project.path_with_namespace');@@ -159,8 +157,7 @@ Route::post('/source/gitlab/events/manual', function () {ray('Preview deployments disabled for ' . $application->name);return response('Nothing to do. Preview Deployments disabled.');}- }- if ($action === 'closed') {+ } else if ($action === 'closed') {$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();if ($found) {$found->delete();@@ -170,6 +167,8 @@ Route::post('/source/gitlab/events/manual', function () {return response('Preview Deployment closed.');}return response('Nothing to do. No Preview Deployment found');+ } else {+ return response('No action found. Contact us for debugging.', 500);}}}diff --git a/versions.json b/versions.jsonindex 473e6beef1..c573164768 100644--- a/versions.json+++ b/versions.json@@ -4,7 +4,7 @@"version": "3.12.36"},"v4": {- "version": "4.0.0-beta.163"+ "version": "4.0.0-beta.164"}}}