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(docker): improve pull request ID check in container status function

Andras Bacsai919fc184b77f
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.php
index 9da622ed34..c62c2ad8e7 100644
--- a/bootstrap/helpers/docker.php
+++ b/bootstrap/helpers/docker.php
@@ -45,7 +45,7 @@ function getCurrentApplicationContainerStatus(Server $server, int $id, ?int $pul
if ($includePullrequests) {
return $container;
}
- if (str($labels)->contains("coolify.pullRequestId=$pullRequestId")) {
+ if ($pullRequestId !== null && $pullRequestId !== 0 && str($labels)->contains("coolify.pullRequestId={$pullRequestId}")) {
return $container;
}