fix(git): trigger deployments when watch_paths is empty

This commit is contained in:
peaklabs-dev committed 2026-01-07 19:15:16 +01:00
1 parent ccda7db54f
commit 54a834e042
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ class Gitlab extends Controller
if ($x_gitlab_event === 'push') {
if ($application->isDeployable()) {
$is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);
if ($is_watch_path_triggered || is_null($application->watch_paths)) {
if ($is_watch_path_triggered || blank($application->watch_paths)) {
$deployment_uuid = new Cuid2;
$result = queue_application_deployment(
application: $application,