({
webhookUrl,
message,
}: {
webhookUrl: string;
message: string;
})
| 42 | }; |
| 43 | |
| 44 | export function sendSlackNotification({ |
| 45 | webhookUrl, |
| 46 | message, |
| 47 | }: { |
| 48 | webhookUrl: string; |
| 49 | message: string; |
| 50 | }) { |
| 51 | return fetch(webhookUrl, { |
| 52 | method: 'POST', |
| 53 | headers: { |
| 54 | 'Content-Type': 'application/json', |
| 55 | }, |
| 56 | body: JSON.stringify({ |
| 57 | text: message, |
| 58 | }), |
| 59 | }); |
| 60 | } |
no test coverage detected