aboutsummaryrefslogtreecommitdiffstats
path: root/app/History
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-29 05:39:32 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-29 05:44:37 +0100
commitc2e4b0a28c050c52f6ed84d6ae1e7172e4b6b08a (patch)
tree7ea64f2a1bb4f3d78786d81d4603e1479c3087dd /app/History
parent8c0d5f70b4a2e5928dce73769d46a79b2b051f63 (diff)
support comments
Diffstat (limited to 'app/History')
-rw-r--r--app/History/PartialCommitInfo.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/History/PartialCommitInfo.hs b/app/History/PartialCommitInfo.hs
index 7497f38..f973938 100644
--- a/app/History/PartialCommitInfo.hs
+++ b/app/History/PartialCommitInfo.hs
@@ -4,6 +4,7 @@ module History.PartialCommitInfo
)
where
+import Control.Arrow (second)
import Control.Exception (catch, handle)
import Data.Binary (Binary)
import Data.ByteString.Lazy.Char8 qualified as LB8
@@ -100,14 +101,16 @@ fromComment cwd comment = do
tags = maybe [] I.extractTags description,
markers = markers,
rawText = rawText,
- commentStyle = commentStyle
+ commentStyle = commentStyle,
+ comments = comments
}
else Nothing
)
where
(commentStyle, rawText) = G.uncomment comment.file_type comment.text
- (title', description) = I.extractText rawText
+ (title', description') = I.extractText rawText
(markers, title) = I.stripIssueMarkers title'
+ (comments, description) = maybe ([], Nothing) (second Just . I.extractComments) description'
dieOfInvalidTreeGrepperResult :: E.InvalidTreeGrepperResult -> IO a
dieOfInvalidTreeGrepperResult (E.InvalidTreeGrepperResult e) =