Skip to content

Commit 9287721

Browse files
authored
Merge pull request #4054 from vincent-tarrit/4053-fix-slack-notifications-content
fix: actions in slack notification
2 parents 283eeeb + c42a16d commit 9287721

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

packages/server/src/utils/notifications/build-error.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,10 @@ export const sendBuildErrorNotifications = async ({
240240
value: `\`\`\`${errorMessage}\`\`\``,
241241
short: false,
242242
},
243-
],
244-
actions: [
245243
{
246-
type: "button",
247-
text: "View Build Details",
248-
url: buildLink,
244+
title: "Details",
245+
value: `<${buildLink}|View Build Details>`,
246+
short: false,
249247
},
250248
],
251249
},

packages/server/src/utils/notifications/build-success.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,10 @@ export const sendBuildSuccessNotifications = async ({
256256
value: date.toLocaleString(),
257257
short: true,
258258
},
259-
],
260-
actions: [
261259
{
262-
type: "button",
263-
text: "View Build Details",
264-
url: buildLink,
260+
title: "Details",
261+
value: `<${buildLink}|View Build Details>`,
262+
short: false,
265263
},
266264
],
267265
},

0 commit comments

Comments
 (0)