aboutsummaryrefslogtreecommitdiffstats
path: root/app/Issue.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-27 13:33:27 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-27 13:33:27 +0100
commit1731c0484c9bd32cb8f312529e192fb4bdd99dba (patch)
tree4dd7e8b44569d78091f3452592766304e49d5b4f /app/Issue.hs
parent775540e3eeb6c2259e654151b18aed9927867949 (diff)
add `rawText` to `Issue`
Diffstat (limited to 'app/Issue.hs')
-rw-r--r--app/Issue.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Issue.hs b/app/Issue.hs
index 8d8e250..b8deb6e 100644
--- a/app/Issue.hs
+++ b/app/Issue.hs
@@ -40,7 +40,8 @@ data Issue = Issue
start :: G.Position,
end :: G.Position,
tags :: [Tag],
- markers :: [T.Text]
+ markers :: [T.Text],
+ rawText :: T.Text
}
deriving (Show, Binary, Generic, Eq)
@@ -98,12 +99,14 @@ fromComment cwd comment = do
start = comment.start,
end = comment.end,
tags = maybe [] I.extractTags description,
- markers = markers
+ markers = markers,
+ rawText = rawText
}
else Nothing
)
where
- (title', description) = I.extractText comment.file_type comment.text
+ rawText = comment.text
+ (title', description) = I.extractText comment.file_type rawText
(markers, title) = stripIssueMarkers title'
issueMarkers :: [T.Text]