direct: change to src as app, instead of gitea

This commit is contained in:
Adam Majer 2024-09-11 19:51:49 +02:00
parent 937664dfba
commit dd316e20b7

View File

@ -197,14 +197,14 @@ func ProcessRabbitMQEvents(listenDefs ListenDefinitions, orgs []string) error {
server.User = url.UserPassword(rabbitUser, rabbitPassword) server.User = url.UserPassword(rabbitUser, rabbitPassword)
domain := "suse" scope := "suse"
if server.Hostname() == "rabbit.opensuse.org" { if server.Hostname() == "rabbit.opensuse.org" {
domain = "opensuse" scope = "opensuse"
} }
for _, org := range orgs { for _, org := range orgs {
for k := range listenDefs.Handlers { 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))
} }
} }