diff --git a/src/github.com/matrix-org/go-neb/goneb.go b/src/github.com/matrix-org/go-neb/goneb.go index d881aca..79ac3e4 100644 --- a/src/github.com/matrix-org/go-neb/goneb.go +++ b/src/github.com/matrix-org/go-neb/goneb.go @@ -26,6 +26,7 @@ import ( _ "github.com/matrix-org/go-neb/services/guggy" _ "github.com/matrix-org/go-neb/services/jira" _ "github.com/matrix-org/go-neb/services/rssbot" + _ "github.com/matrix-org/go-neb/services/travisci" "github.com/matrix-org/go-neb/types" _ "github.com/mattn/go-sqlite3" "github.com/prometheus/client_golang/prometheus" diff --git a/src/github.com/matrix-org/go-neb/services/travisci/travisci.go b/src/github.com/matrix-org/go-neb/services/travisci/travisci.go index ba78c59..8185794 100644 --- a/src/github.com/matrix-org/go-neb/services/travisci/travisci.go +++ b/src/github.com/matrix-org/go-neb/services/travisci/travisci.go @@ -152,6 +152,9 @@ func notifToTemplate(n webhookNotification) map[string]string { } func outputForTemplate(travisTmpl string, tmpl map[string]string) (out string) { + if travisTmpl == "" { + travisTmpl = DefaultTemplate + } out = travisTmpl for tmplVar, tmplValue := range tmpl { out = strings.Replace(out, "%{"+tmplVar+"}", tmplValue, -1)