Skip to content

Commit

Permalink
Revert whatsapp to default name
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 27, 2024
1 parent 0fbbd1f commit 7f4983b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bridges.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const (
BridgeTelegram BridgeType = "telegram"
BridgeTelegramV2 BridgeType = "telegramv2"
BridgeWhatsApp BridgeType = "whatsapp"
BridgeWhatsAppV2 BridgeType = "whatsappv2"
BridgeFacebook BridgeType = "facebook"
BridgeFacebookGo BridgeType = "facebookgo"
BridgeGoogleChat BridgeType = "googlechat"
Expand Down Expand Up @@ -64,12 +63,7 @@ var bridgeNotifications = map[BridgeType][]BridgeUpdateNotification{
{Environment: EnvStaging, Channel: ChannelStable, Bridge: BridgeTelegram},
{Environment: EnvProduction, Channel: ChannelInternal, Bridge: BridgeTelegram, DeployNext: true},
},
BridgeWhatsApp: {},
BridgeWhatsAppV2: {
{Environment: EnvDevelopment, Channel: ChannelStable, Bridge: BridgeWhatsApp},
{Environment: EnvStaging, Channel: ChannelStable, Bridge: BridgeWhatsApp},
{Environment: EnvProduction, Channel: ChannelInternal, Bridge: BridgeWhatsApp, DeployNext: true},
},
BridgeWhatsApp: defaultNotifications,
BridgeFacebook: defaultNotifications,
BridgeGoogleChat: defaultNotifications,
BridgeGroupMe: defaultNotifications,
Expand Down Expand Up @@ -116,15 +110,13 @@ var imageTemplateOverrides = map[BridgeType]string{
BridgeiMessageCloud: "{{.Commit}}",
BridgeiMessagego: "{{.Image}}:{{.Commit}}",
BridgeTelegramV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeWhatsAppV2: "{{.Image}}:v2-{{.Commit}}-amd64",
}

const DefaultTargetRepoTemplate = "%s/bridge/%s"

var targetImageRepoOverrides = map[BridgeType]string{
BridgeHungryserv: "/hungryserv",
BridgeTelegramV2: "/bridge/telegram",
BridgeWhatsAppV2: "/bridge/whatsapp",
}

func (bridgeType BridgeType) NotificationTargets() []BridgeUpdateNotification {
Expand Down

0 comments on commit 7f4983b

Please sign in to comment.