From cb2460fc7d71eb12a98272e7c51a290efe7dfa75 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Tue, 27 Apr 2021 10:31:37 +0200 Subject: [PATCH] fix: Fixing ketchup to notify reconciliation loop Signed-off-by: Vincent Boutour --- pkg/notifier/notifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notifier/notifier.go b/pkg/notifier/notifier.go index 418ba12b..956c8f59 100644 --- a/pkg/notifier/notifier.go +++ b/pkg/notifier/notifier.go @@ -215,7 +215,7 @@ func (a app) getKetchupToNotify(ctx context.Context, releases []model.Release) ( for _, release := range releases { for index < size { current := ketchups[index] - if release.Repository.ID < current.Repository.ID || release.Pattern < current.Pattern { + if release.Repository.ID < current.Repository.ID || (release.Repository.ID == current.Repository.ID && release.Pattern < current.Pattern) { break }