From 22c71e24edc8655f15c8dba02244b8e6d059da5c Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 30 Nov 2023 14:43:40 +0100 Subject: fix: fix log not showing closed issues as deleted --- app/History/CommitInfo.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/History') diff --git a/app/History/CommitInfo.hs b/app/History/CommitInfo.hs index ad27d1c..dbb7e20 100644 --- a/app/History/CommitInfo.hs +++ b/app/History/CommitInfo.hs @@ -93,8 +93,10 @@ diffCommitInfos maybeOldInfo newInfo = ] where newHash = newInfo.hash - newIssues = newInfo.issues - oldIssues = maybe [] (.issues) maybeOldInfo + newIssues' = newInfo.issues + oldIssues' = maybe [] (.issues) maybeOldInfo + newIssues = filter (not . (.closed)) newIssues' + oldIssues = filter (not . (.closed)) oldIssues' eq = (==) `on` (.id) neq = (/=) `on` (.rawText) -- cgit v1.2.3