diff --git a/bots-common/listen.go b/bots-common/listen.go index 615739c..f87bd2a 100644 --- a/bots-common/listen.go +++ b/bots-common/listen.go @@ -197,14 +197,14 @@ func ProcessRabbitMQEvents(listenDefs ListenDefinitions, orgs []string) error { server.User = url.UserPassword(rabbitUser, rabbitPassword) - domain := "suse" + scope := "suse" if server.Hostname() == "rabbit.opensuse.org" { - domain = "opensuse" + scope = "opensuse" } for _, org := range orgs { for k := range listenDefs.Handlers { - topics = append(topics, fmt.Sprintf("%s.gitea.%s.%s.#", domain, org, k)) + topics = append(topics, fmt.Sprintf("%s.src.%s.%s.#", scope, org, k)) } }