From 63ecb8ced0a7e0c06007faa5dabb24c12168fdbd Mon Sep 17 00:00:00 2001 From: Ariel Mashraki Date: Thu, 6 Mar 2025 18:04:47 +0200 Subject: [PATCH] cmd/atlas/internal/migratelint: fix the way we count changes --- cmd/atlas/internal/migratelint/run.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/atlas/internal/migratelint/run.go b/cmd/atlas/internal/migratelint/run.go index 703b8af94b8..c08cb6ad5b5 100644 --- a/cmd/atlas/internal/migratelint/run.go +++ b/cmd/atlas/internal/migratelint/run.go @@ -564,7 +564,9 @@ func (r *SummaryReport) TotalChanges() int { var n int for _, f := range r.Files { if f.File != nil { - n += len(f.Changes) + for _, c := range f.File.Changes { + n += len(c.Changes) + } } } return n