chore: align control-plane behavior

This commit is contained in:
Andras Bacsai committed 2026-09-24 15:46:04 +02:00
1 parent 2fb8c411e9
commit 87685d1e09
48 files changed
+595 -157

No files matched your search

+3 -3
View File
@@ -79,7 +79,7 @@ class Github extends Controller
if ($x_github_event === 'push') {
$applications = $this->manualWebhookApplications($applications->where('git_branch', $branch), $full_name);
if ($applications->isEmpty()) {
return response("Nothing to do. No applications found with deploy key set, branch is '$branch' and Git Repository name has $full_name.");
return response([$this->unauthenticatedManualWebhookFailurePayload()]);
}
}
if ($x_github_event === 'pull_request') {
@@ -88,7 +88,7 @@ class Github extends Controller
}
$applications = $this->manualWebhookApplications($applications, $full_name);
if ($applications->isEmpty()) {
return response("Nothing to do. No applications found for repo $full_name and branch '$base_branch'.");
return response([$this->unauthenticatedManualWebhookFailurePayload()]);
}
}
$applicationsByServer = $applications->groupBy(function ($app) {
@@ -239,7 +239,7 @@ class Github extends Controller
}
}
return response($return_payloads);
return $this->manualWebhookResponse($return_payloads);
} catch (Exception $e) {
return handleError($e);
}