feat: Update Teams webhook payload format
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) :
Example MessageCard payload (old) :
@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!
@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!