semantic-release-ms-teams icon indicating copy to clipboard operation
semantic-release-ms-teams copied to clipboard

feat: Update Teams webhook payload format

Open Sean89us opened this issue 11 months ago • 1 comments

Updating teamsify.js to support the new Power Automate style of webhooks, which do not support MessageCard format but instead require AdaptiveCard.

In order to facilitate this without breaking legacy O365 webhook compatibility, I assigned a variable adaptiveCardStyle to toggle the payload formatting. Default is false which sends a MessageCard as always, but if true then AdaptiveCard will be sent instead. if adaptiveCardStyle is not set, the plugin will evaluate the webhook url and try to determine correct styling.

I have tested this extensively and both message formats work perfectly and appear very similarly.

Example AdaptiveCard payload (new) : adaptivecard

Example MessageCard payload (old) : messagecard

Sean89us avatar May 16 '25 13:05 Sean89us

@yllieth my company has a need for this plugin to be functional, I would prefer not having to publish my own fork seeing as this plugin is already known to the community and documented in semantic-release's own docs.

Let me know if there are any changes you would like made to this and I can try to facilitate!

Sean89us avatar May 16 '25 13:05 Sean89us

@yllieth my company has a need for this plugin to be functional, I would prefer not having to publish my own fork seeing as this plugin is already known to the community and documented in semantic-release's own docs.

Let me know if there are any changes you would like made to this and I can try to facilitate!

Sean89us avatar May 16 '25 13:05 Sean89us