Skip to content

Commit

Permalink
Include status reason
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Sep 23, 2024
1 parent f27e7fa commit cde6af4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ export default function message(event) {
].includes(statusReason)
) {
msg.channel = SLACK_DEBUG_CHANNEL;
msg.attachments[0].blocks.push({
type: "section",
text: {
type: "mrkdwn",
text: `> ${statusReason}`,
},
});
return msg;
}

Expand Down
7 changes: 7 additions & 0 deletions src/status-change-slack-notifications/stack-status-change.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ export default function message(event) {
].includes(statusReason)
) {
msg.channel = SLACK_DEBUG_CHANNEL;
msg.attachments[0].blocks.push({
type: "section",
text: {
type: "mrkdwn",
text: `> ${statusReason}`,
},
});
return msg;
}

Expand Down

0 comments on commit cde6af4

Please sign in to comment.