aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-30 14:43:40 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-30 14:43:51 +0100
commit22c71e24edc8655f15c8dba02244b8e6d059da5c (patch)
treea3b006e1effced4f8a7aa30b0b4977fdbeeff5a1
parent773dd51aec39ef4ef8d5818ffe279b0737d4d567 (diff)
fix: fix log not showing closed issues as deleted
-rw-r--r--app/History/CommitInfo.hs6
1 files changed, 4 insertions, 2 deletions
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)