Merge pull request #3461 from tejaswivinod/tejaswivinod-patch-1

Substitute :name by incident name on slack title
This commit is contained in:
James Brooks
2019-02-07 14:01:08 +00:00
committed by GitHub

View File

@@ -128,7 +128,7 @@ class NewIncidentNotification extends Notification
->$status()
->content($content)
->attachment(function ($attachment) use ($notifiable) {
$attachment->title(trans('notifications.incident.new.slack.title', [$this->incident->name]))
$attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name]))
->timestamp($this->incident->getWrappedObject()->occurred_at)
->fields(array_filter([
'ID' => "#{$this->incident->id}",