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(core): improve deployment failure Slack notification formatting

Andras Bacsai3da921e2ace3
diff --git a/app/Notifications/Application/DeploymentFailed.php b/app/Notifications/Application/DeploymentFailed.php
index 0c09b1dbd0..dec361e782 100644
--- a/app/Notifications/Application/DeploymentFailed.php
+++ b/app/Notifications/Application/DeploymentFailed.php
@@ -44,7 +44,7 @@ class DeploymentFailed extends CustomEmailNotification
if (str($this->fqdn)->explode(',')->count() > 1) {
$this->fqdn = str($this->fqdn)->explode(',')->first();
}
- $this->deployment_url = base_url()."/project/{$this->project_uuid}/environments/{$this->environment_uuid}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}";
+ $this->deployment_url = base_url()."/project/{$this->project_uuid}/environment/{$this->environment_uuid}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}";
}
public function via(object $notifiable): array
@@ -175,9 +175,9 @@ class DeploymentFailed extends CustomEmailNotification
}
}
- $description .= "\n\n**Project:** ".data_get($this->application, 'environment.project.name');
- $description .= "\n**Environment:** {$this->environment_name}";
- $description .= "\n**Deployment Logs:** {$this->deployment_url}";
+ $description .= "\n\n*Project:* ".data_get($this->application, 'environment.project.name');
+ $description .= "\n*Environment:* {$this->environment_name}";
+ $description .= "\n*<{$this->deployment_url}|Deployment Logs>*";
return new SlackMessage(
title: $title,