From 73ef74d479c9f9fd49db4447a58ef9fd37b19a28 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 29 Dec 2024 21:36:59 -0600 Subject: show the git author and email --- patchsets.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patchsets.go b/patchsets.go index 5638187..a2f343a 100644 --- a/patchsets.go +++ b/patchsets.go @@ -70,8 +70,10 @@ func listPatchsets(w http.ResponseWriter) { fmt.Println(entry.Name(), err) continue } - fmt.Fprintln(w, entry.Name(), p.Name, p.Comment) - fmt.Println(entry.Name(), p.Name, p.Comment) + author := "Author: " + os.Getenv("GIT_AUTHOR_NAME") + author += " <" + os.Getenv("GIT_AUTHOR_EMAIL") + ">" + fmt.Fprintln(w, entry.Name(), p.Name, p.Comment, author) + fmt.Println(entry.Name(), p.Name, p.Comment, author) } } } -- cgit v1.2.3