fix(core): improve deployment failure Slack notification formatting
This commit is contained in:
@@ -44,7 +44,7 @@ class DeploymentFailed extends CustomEmailNotification
|
|||||||
if (str($this->fqdn)->explode(',')->count() > 1) {
|
if (str($this->fqdn)->explode(',')->count() > 1) {
|
||||||
$this->fqdn = str($this->fqdn)->explode(',')->first();
|
$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
|
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\n*Project:* ".data_get($this->application, 'environment.project.name');
|
||||||
$description .= "\n**Environment:** {$this->environment_name}";
|
$description .= "\n*Environment:* {$this->environment_name}";
|
||||||
$description .= "\n**Deployment Logs:** {$this->deployment_url}";
|
$description .= "\n*<{$this->deployment_url}|Deployment Logs>*";
|
||||||
|
|
||||||
return new SlackMessage(
|
return new SlackMessage(
|
||||||
title: $title,
|
title: $title,
|
||||||
|
Reference in New Issue
Block a user