mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 18:52:49 +00:00
chore: align control-plane behavior
This commit is contained in:
1 parent
2fb8c411e9
commit
87685d1e09
48 files changed
+595
-157
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user