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 }}"| Field | Type | Description |
|---|---|---|
enabled | bool or template | Enable Teams notifications |
webhook_url | string | Teams incoming webhook URL (falls back to TEAMS_WEBHOOK) |
message_template | string | Message body (templates supported). Default: {{ ProjectName }} {{ Tag }} is out! Check it out at {{ ReleaseURL }} |
title_template | string | Card header (templates supported). Default: {{ ProjectName }} {{ Tag }} is out! |
color | string | Card theme color as a hex string (0076D7). Default: #2D313E |
icon_url | string | Icon shown in the card header |