From eeb56c2e26984e7bec06257f5088c3bf1a5676f0 Mon Sep 17 00:00:00 2001 From: JUN SAKATA Date: Mon, 20 Jan 2020 01:23:50 +0900 Subject: [PATCH] ignore latest --- flow/process.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flow/process.go b/flow/process.go index 0280faa..c1eeed6 100644 --- a/flow/process.go +++ b/flow/process.go @@ -56,6 +56,14 @@ func (f *Flow) generatePRs(ctx context.Context, app *Application, version string } func shouldCreatePR(m Manifest, version string) bool { + if version == "" { + return false + } + // ignore latest tag + if version == "latest" { + return false + } + for _, prefix := range m.Filters.ExcludePrefixes { if strings.HasPrefix(version, prefix) { return false