From 04d1e2822997da959044b4e9dbfd1534b602ddde Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 18 Mar 2019 12:08:11 +0100 Subject: [PATCH] fail if no urls specified --- plugin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.go b/plugin.go index ad0604a..b973f4f 100644 --- a/plugin.go +++ b/plugin.go @@ -66,6 +66,10 @@ func (p Plugin) Exec() error { b []byte ) + if len(p.Config.URLs) == 0 { + return fmt.Errorf("You must provide at least one url") + } + if p.Config.Template == "" { data := struct { Repo Repo `json:"repo"`