(context webhook.Context)
| 92 | } |
| 93 | |
| 94 | func (*Receiver) Post(context webhook.Context) error { |
| 95 | if context.DirectMessage && len(context.MentionEndUsers) > 0 { |
| 96 | if postDirectMessage(context) { |
| 97 | return nil |
| 98 | } |
| 99 | } |
| 100 | if isPowerAutomateURL(context.URL) { |
| 101 | return postPowerAutomateMessage(context) |
| 102 | } |
| 103 | return postMessage(context) |
| 104 | } |
| 105 | |
| 106 | // isPowerAutomateURL returns true if the webhook URL is a Power Automate Workflow URL |
| 107 | // (*.powerplatform.com or legacy *.logic.azure.com) rather than a legacy Office 365 Connector URL. |
nothing calls this directly
no test coverage detected