show the git author and email

This commit is contained in:
Jeff Carr 2024-12-29 21:36:59 -06:00
parent 20ea487d06
commit 73ef74d479
1 changed files with 4 additions and 2 deletions

View File

@ -70,8 +70,10 @@ func listPatchsets(w http.ResponseWriter) {
fmt.Println(entry.Name(), err) fmt.Println(entry.Name(), err)
continue continue
} }
fmt.Fprintln(w, entry.Name(), p.Name, p.Comment) author := "Author: " + os.Getenv("GIT_AUTHOR_NAME")
fmt.Println(entry.Name(), p.Name, p.Comment) 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)
} }
} }
} }