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

Function getTeamsConfig

backend/plugin/webhook/teams/teams.go:34–44  ·  view source on GitHub ↗

getTeamsConfig extracts the Teams configuration from the AppIMSetting.

(setting *storepb.AppIMSetting)

Source from the content-addressed store, hash-verified

32
33// getTeamsConfig extracts the Teams configuration from the AppIMSetting.
34func getTeamsConfig(setting *storepb.AppIMSetting) *storepb.AppIMSetting_Teams {
35 if setting == nil {
36 return nil
37 }
38 for _, s := range setting.Settings {
39 if s.Type == storepb.WebhookType_TEAMS {
40 return s.GetTeams()
41 }
42 }
43 return nil
44}
45
46// WebhookActionTarget is the API message for Teams webhook action target.
47type WebhookActionTarget struct {

Callers 1

postDirectMessageFunction · 0.85

Calls 1

GetTeamsMethod · 0.45

Tested by

no test coverage detected