Merge pull request #46 from xoxys/master

Fail if no urls specified
This commit is contained in:
Thomas Boerger
2019-03-18 13:43:55 +01:00
committed by GitHub
+4
View File
@@ -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"`