From f849fe4f8bd424a57de870d6cb8f038221dd7ff2 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 20 Oct 2023 09:55:53 +0200 Subject: add internal tag @modifiedAt --- app/Main.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/Main.hs') diff --git a/app/Main.hs b/app/Main.hs index 28a32bb..3d71ebc 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -616,8 +616,10 @@ main = do \I.Provenance {first} -> ( keyword "by" <+> value (first.author.name <> " <" <> first.author.email <> ">") ) - date' = fromProvenance $ + createdAt = fromProvenance $ \I.Provenance {first} -> keyword "on" <+> value (show (utctDay first.date)) + modifiedAt = fromProvenance $ + \I.Provenance {last = last'} -> keyword "modified" <+> value (show (utctDay last'.date)) fromProvenanceDef def = flip (maybe def) issue.provenance fromProvenance = flip fmap issue.provenance @@ -630,7 +632,8 @@ main = do Just fileAndRow, Just commit, author, - date' + createdAt, + modifiedAt ] ) issues -- cgit v1.2.3