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: no id found

Andras Bacsaib6d8851c995f
diff --git a/routes/webhooks.php b/routes/webhooks.php
index 809cffe869..c38c62ae11 100644
--- a/routes/webhooks.php
+++ b/routes/webhooks.php
@@ -65,6 +65,7 @@ Route::get('/source/github/install', function () {
});
Route::post('/source/github/events', function () {
try {
+ $id = null;
$x_github_delivery = request()->header('X-GitHub-Delivery');
$x_github_event = Str::lower(request()->header('X-GitHub-Event'));
$x_github_hook_installation_target_id = request()->header('X-GitHub-Hook-Installation-Target-Id');
@@ -88,7 +89,6 @@ Route::post('/source/github/events', function () {
return response('not cool');
}
}
-
if ($x_github_event === 'push') {
$id = data_get($payload, 'repository.id');
$branch = data_get($payload, 'ref');