Skip to content

Commit

Permalink
ignore latest
Browse files Browse the repository at this point in the history
  • Loading branch information
sakajunquality committed Jan 19, 2020
1 parent b86cd37 commit eeb56c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flow/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eeb56c2

Please sign in to comment.