|
@@ -30,7 +30,7 @@ class GitContributors extends API {
|
|
|
logs = await git.raw([
|
|
|
"log",
|
|
|
"--no-merges",
|
|
|
- "--pretty=format:%H|%an|%ae",
|
|
|
+ "--pretty=format:%H|%an|%ae|%ad|%s",
|
|
|
"--shortstat"
|
|
|
])
|
|
|
|
|
@@ -47,7 +47,7 @@ class GitContributors extends API {
|
|
|
const line = lines[i].trim()
|
|
|
|
|
|
if (line.includes("|")) {
|
|
|
- const [commitHash, name, email] = line.split("|")
|
|
|
+ const [commitHash, name, email, date, ...messageParts] = line.split("|")
|
|
|
currentAuthor = email // 用邮箱作为唯一 key 更稳妥
|
|
|
if (!contributors[currentAuthor]) {
|
|
|
contributors[currentAuthor] = {
|