diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-11-30 14:43:40 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-11-30 14:43:51 +0100 |
commit | 22c71e24edc8655f15c8dba02244b8e6d059da5c (patch) | |
tree | a3b006e1effced4f8a7aa30b0b4977fdbeeff5a1 /app/History | |
parent | 773dd51aec39ef4ef8d5818ffe279b0737d4d567 (diff) |
fix: fix log not showing closed issues as deleted
Diffstat (limited to 'app/History')
-rw-r--r-- | app/History/CommitInfo.hs | 6 |
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) |