fluxcd / notification-controller

The GitOps Toolkit event forwarder and notification dispatcher
https://fluxcd.io
Apache License 2.0
151 stars 133 forks source link

Add MS Adaptive Card payload to `msteams` Provider #920

Closed matheuscscp closed 1 month ago

matheuscscp commented 2 months ago

Fixes #878

The solution implemented in this PR for addressing the deprecation of the Office 365 Connector is checking the host of the address. If the suffix .webhook.office.com is present, the controller will keep the old behavior and send the existing payload format. Otherwise, a new payload format for Microsoft Adaptive Card will be sent, which is compatible with the new solution offered by Microsoft Teams: Incoming Webhook with Workflows.