From 2e9d5112c523612dfd223145e0873e557181566e Mon Sep 17 00:00:00 2001 From: Tatsuro Shibamura Date: Tue, 3 Mar 2020 00:26:33 +0900 Subject: [PATCH] Adding Microsoft Teams webhook target (#72) --- .../Internal/WebhookLifeCycleNotification.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/KeyVault.Acmebot/Internal/WebhookLifeCycleNotification.cs b/KeyVault.Acmebot/Internal/WebhookLifeCycleNotification.cs index a1848364..de7c259f 100644 --- a/KeyVault.Acmebot/Internal/WebhookLifeCycleNotification.cs +++ b/KeyVault.Acmebot/Internal/WebhookLifeCycleNotification.cs @@ -61,6 +61,15 @@ private async Task PostEventAsync(string functionName, string instanceId, string } }; } + else if (_options.Webhook.Contains("outlook.office.com")) + { + model = new + { + title = functionName, + text = reason, + themeColor = "A30200" + }; + } else { model = new