Skip to content

Commit

Permalink
Add short summary to google chat message
Browse files Browse the repository at this point in the history
  • Loading branch information
neemspees committed Aug 16, 2023
1 parent 152388a commit fcf74b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Notifications/CheckFailedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function toGoogleChat(): GoogleChatMessage
foreach ($this->results as $result) {
$card = Card::create()
->header(
$result->check->getLabel(),
$result->check->getLabel() . ': ' . $result->getShortSummary(),
$result->getNotificationMessage(),
);

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Notifications/CheckFailedNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
foreach ($checkResults as $result) {
$card = Card::create()
->header(
$result->check->getLabel(),
$result->check->getLabel() . ': ' . $result->getShortSummary(),
$result->getNotificationMessage(),
);

Expand Down

0 comments on commit fcf74b0

Please sign in to comment.