From dd316e20b7f2d029a88212d96200591f0ae4180e7eec697aef550623c899b3b6 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 11 Sep 2024 19:51:49 +0200 Subject: [PATCH] direct: change to `src` as app, instead of `gitea` --- bots-common/listen.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) } }