Avoid unused line statistics when refreshing merge facts

This commit is contained in:
Ian Gulliver
2026-10-21 12:02:22 -07:00
parent 09faa74822
commit 36d6636220
2 changed files with 13 additions and 2 deletions
+1 -2
View File
@@ -123,11 +123,10 @@ func (m *Manager) gitFacts(ctx context.Context, t api.Task, p api.Project) (stor
if err != nil {
return g, err
}
all, err := git.Compare(t.WorktreePath, p.DefaultBranch, "HEAD", tree, "")
g.UnmergedFiles, err = git.ChangedFileCount(t.WorktreePath, p.DefaultBranch, tree)
if err != nil {
return g, err
}
g.UnmergedFiles = len(all.Files)
latest, err := m.store.LastReviewable(ctx, t.Id)
if errors.Is(err, store.ErrNotFound) {
return g, nil