🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 7af0c2f1a5b4703f09e02d298c55152ec9ae5ae3
Parent: 184aa13862e1ff69490695beadfd77a9fb32bf00
Author: mcol <mcol@posteo.net>
Date: 2021-09-24 13:04:38 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-24 13:04:38 +0100

Add lots more properties to commits

src/Repositories.hs Modified

@@ -132,4 +132,11 @@
     "title" -> Just . toGVal . strip . fst . breakOn "\n" . commitLog $ commit
     "body" -> Just . toGVal . strip . snd . breakOn "\n" . commitLog $ commit
     "message" -> Just . toGVal . strip . commitLog $ commit
+    "author" -> Just . toGVal . strip . signatureName . commitAuthor $ commit
+    "committer" -> Just . toGVal . strip . signatureName . commitCommitter $ commit
+    "author_email" -> Just . toGVal . strip . signatureEmail . commitAuthor $ commit
+    "committer_email" -> Just . toGVal . strip . signatureEmail . commitCommitter $ commit
+    "authored" -> Just . toGVal . show . signatureWhen . commitAuthor $ commit
+    "committed" -> Just . toGVal . show . signatureWhen . commitCommitter $ commit
+    "encoding" -> Just . toGVal . strip . commitEncoding $ commit
     _ -> Nothing