PullNotifier Logo

PullNotifier

Adaptive Card Reference

Microsoft Teams adaptive cards for GitHub PRs (reference)

A complete reference for designing adaptive cards that show GitHub pull request data in Microsoft Teams. Schema basics, PR-specific patterns, code samples, and the gotchas no one warns you about.

Targeting: microsoft teams adaptive card pull request ยท Last updated 2026-05-02

Skip the manual setup

PullNotifier installs from Microsoft AppSource in 5 minutes โ€” no YAML, no Power Automate flows.

Adaptive Card schema basics for Microsoft Teams

Microsoft Teams supports Adaptive Card schemas up to v1.5. Newer schema features (Adaptive Card v1.6 and beyond) won't render in Teams. Always set `"version": "1.5"` at the root.

PR-specific card patterns

  • Header row: bold PR number + title in a TextBlock with `size: Medium`. Keep titles under 80 chars to avoid wrapping.
  • Author row: ColumnSet with avatar Image (style: Person) and author/repo metadata.
  • Status badge: use FactSet or coloured TextBlock to show open / draft / merged / closed.
  • Action buttons: Action.OpenUrl for "View PR" and "Files changed". Action.Submit for in-Teams approve/reject (requires bot, not webhook).
  • Mention chip: use the `msteams.entities` array at the root to attach mentioned-user metadata. Without this, mentions render as plain text.

Code sample: full PR card

{ "type": "AdaptiveCard", "version": "1.5", "msteams": { "entities": [ { "type": "mention", "text": "<at>Sarah Chen</at>", "mentioned": { "id": "29:1234abcd...", "name": "Sarah Chen" } } ] }, "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "PR #1234: Add dark mode toggle" }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "Image", "url": "https://github.com/sarah.png", "style": "Person", "size": "Small" } ] }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "weight": "Bolder", "text": "<at>Sarah Chen</at>" }, { "type": "TextBlock", "spacing": "None", "text": "owner/repo ยท open ยท 3 reviewers", "isSubtle": true } ] } ] } ], "actions": [ { "type": "Action.OpenUrl", "title": "View PR", "url": "https://github.com/owner/repo/pull/1234" } ] }

Common gotchas

  • Mentions render as plain text: Microsoft Teams requires the `msteams.entities` array AND the `<at>Display Name</at>` token in the body. Both are mandatory.
  • Card too tall: Microsoft Teams truncates very tall cards. Keep cards under ~600px of vertical content; prefer ColumnSet over stacked items.
  • Image not loading: Microsoft Teams sandbox blocks unknown image hosts. Use HTTPS URLs from trusted hosts (github.com, ik.imagekit.io).
  • Action.Submit doesn't work from webhook-posted cards: Action.Submit requires a bot conversation context. From webhooks, use Action.OpenUrl instead.
  • Updating the same card in place: requires the bot SDK plus the original card's conversation reference. Webhook-posted cards can't be updated in place.

How PullNotifier handles all of this

PullNotifier ships polished adaptive cards out of the box, with mention rendering, image hosting, in-place card updates, and full action button support. None of the gotchas above are your problem.


Frequently asked

What Adaptive Card version does Microsoft Teams support?

Microsoft Teams supports Adaptive Cards up to schema version 1.5. Always set `"version": "1.5"` at the root.

Why don't my @mentions trigger Microsoft Teams notifications?

You need both the `msteams.entities` array describing the mentioned user and the `<at>Display Name</at>` token inline in the body. Both are mandatory for the notification to fire.

Can I update the same adaptive card in place?

Yes โ€” but only via the Bot SDK with the original conversation reference. Cards posted via Power Automate or incoming webhooks cannot be updated in place.

Does PullNotifier let me customise the adaptive card layout?

Yes โ€” Enterprise customers can customise card branding and field selection. Default cards work for most teams without any tweaking.

Keep reading

โ†’ PR Notification Templateโ†’ Webhook Tutorialโ†’ Microsoft Teams Mentions Feature

Skip the tutorial โ€” install PullNotifier

Get smart GitHub PR notifications in Microsoft Teams in 5 minutes. Free for small teams.

PullNotifier Logo

PullNotifier

ยฉ 2026 PullNotifier. All rights reserved

Microsoft Teams

Overview

Integration

Setup Guide

Pricing

Code Review Reminders

vs Official @github

O365 Connector Replacement

Read our Blog

Privacy Policy

Terms of Service

Changelog