Skip to main content

Microsoft Teams

Send release notifications to Microsoft Teams

Config

announce:
  teams:
    enabled: true
    webhook_url: "{{ Env.TEAMS_WEBHOOK }}"
    message_template: "{{ ProjectName }} {{ Tag }} has been released! {{ ReleaseURL }}"

Create an incoming webhook in your Teams channel via Connectors > Incoming Webhook and copy the generated URL.

Adaptive Card format

The message is delivered as a Microsoft Adaptive Card (v1.4) wrapped inside a message payload. The message_template value becomes the text of a TextBlock element with word-wrap enabled. You do not need to construct the card JSON yourself -- anodizer handles that.

Environment variables

Store the webhook URL in an environment variable so it stays out of your committed config file. When webhook_url is unset, anodizer falls back to the TEAMS_WEBHOOK env var:

announce:
  teams:
    webhook_url: "{{ Env.TEAMS_WEBHOOK }}"
FieldTypeDescription
enabledbool or templateEnable Teams notifications
webhook_urlstringTeams incoming webhook URL (falls back to TEAMS_WEBHOOK)
message_templatestringMessage body (templates supported). Default: {{ ProjectName }} {{ Tag }} is out! Check it out at {{ ReleaseURL }}
title_templatestringCard header (templates supported). Default: {{ ProjectName }} {{ Tag }} is out!
colorstringCard theme color as a hex string (0076D7). Default: #2D313E
icon_urlstringIcon shown in the card header