fix(core): improve deployment failure Slack notification formatting
This commit is contained in:
parent
4c9aa24cd3
commit
3da921e2ac
1 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ public function __construct(Application $application, string $deployment_uuid, ?
|
|||
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 @@ public function toSlack(): SlackMessage
|
|||
}
|
||||
}
|
||||
|
||||
$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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue