Skip to content

Commit

Permalink
Adding Microsoft Teams webhook target (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Mar 2, 2020
1 parent 1b07f49 commit 2e9d511
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions KeyVault.Acmebot/Internal/WebhookLifeCycleNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e9d511

Please sign in to comment.