MCPcopy Create free account
hub / github.com/bytebase/bytebase / Post

Method Post

backend/plugin/webhook/teams/teams.go:94–104  ·  view source on GitHub ↗
(context webhook.Context)

Source from the content-addressed store, hash-verified

92}
93
94func (*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.

Callers

nothing calls this directly

Implementers 8

Receiverbackend/plugin/webhook/discord/discord
feishuReceiverbackend/plugin/webhook/feishu/feishu.g
Receiverbackend/plugin/webhook/dingtalk/dingta
Receiverbackend/plugin/webhook/wecom/wecom.go
Receiverbackend/plugin/webhook/slack/slack.go
Receiverbackend/plugin/webhook/teams/teams.go
Receiverbackend/plugin/webhook/googlechat/goog
larkReceiverbackend/plugin/webhook/lark/lark.go

Calls 4

isPowerAutomateURLFunction · 0.85
postPowerAutomateMessageFunction · 0.85
postDirectMessageFunction · 0.70
postMessageFunction · 0.70

Tested by

no test coverage detected