direct: change to src
as app, instead of gitea
This commit is contained in:
parent
937664dfba
commit
dd316e20b7
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user