Skip to content

Commit

Permalink
Merge pull request #21 from sakajunquality/feature/ignore-latest
Browse files Browse the repository at this point in the history
ignore latest
  • Loading branch information
sakajunquality authored Jan 19, 2020
2 parents b86cd37 + eeb56c2 commit 5a42ac8
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 5a42ac8

Please sign in to comment.