fix(git): trigger deployments when watch_paths is empty

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

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,