1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-09-18 23:01:35 +02:00

Push notification not on all runs (#152)

* added gotify and ntfy to notify

* added new example config

* use push config in all configs
This commit is contained in:
Andreas Wachter 2023-05-16 09:39:46 +02:00 committed by GitHub
parent 25288d6df2
commit 2e75d80540
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,11 @@ func readConfigFile(configfile string) []*types.Conf {
}
if !reflect.ValueOf(c).IsZero() {
if len(conf) > 0 {
if len(c.Metrics.PushConfigs.Gotify) == 0 && len(c.Metrics.PushConfigs.Ntfy) == 0 {
c.Metrics.PushConfigs = conf[0].Metrics.PushConfigs
}
}
conf = append(conf, c)
i++
}