fix: container status jobs for old pr deployments
This commit is contained in:
parent
fc68bf50b5
commit
a94b7ee611
1 changed files with 3 additions and 0 deletions
|
|
@ -159,6 +159,9 @@ public function handle(): void
|
|||
if ($applicationId) {
|
||||
$pullRequestId = data_get($labels, 'coolify.pullRequestId');
|
||||
if ($pullRequestId) {
|
||||
if (str($applicationId)->contains('-')) {
|
||||
$applicationId = str($applicationId)->before('-');
|
||||
}
|
||||
$preview = ApplicationPreview::where('application_id', $applicationId)->where('pull_request_id', $pullRequestId)->first();
|
||||
if ($preview) {
|
||||
$foundApplicationPreviews[] = $preview->id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue