|
|
@@ -31,16 +31,21 @@ func TimeingCountData() { |
|
|
|
log.Error("wiki not exist. wikiPath=" + wikiPath) |
|
|
|
} else { |
|
|
|
log.Info("wiki exist, wikiPath=" + wikiPath) |
|
|
|
list, _ := wikiRepo.GetCommitByPathAndDays(wikiPath, 1) |
|
|
|
for logEntry := list.Front(); logEntry != nil; logEntry = logEntry.Next() { |
|
|
|
commit := logEntry.Value.(*git.Commit) |
|
|
|
log.Info("commit msg=" + commit.CommitMessage + " time=" + commit.Committer.When.Format("2006-01-02 15:04:05")) |
|
|
|
if _, ok := wikiMap[commit.Committer.Name]; !ok { |
|
|
|
wikiMap[commit.Committer.Name] = 0 |
|
|
|
} else { |
|
|
|
wikiMap[commit.Committer.Name] += 1 |
|
|
|
list, err := wikiRepo.GetCommitByPathAndDays(wikiPath, 1) |
|
|
|
if err != nil { |
|
|
|
log.Info("err,err=v%", err) |
|
|
|
} else { |
|
|
|
for logEntry := list.Front(); logEntry != nil; logEntry = logEntry.Next() { |
|
|
|
commit := logEntry.Value.(*git.Commit) |
|
|
|
log.Info("commit msg=" + commit.CommitMessage + " time=" + commit.Committer.When.Format("2006-01-02 15:04:05")) |
|
|
|
if _, ok := wikiMap[commit.Committer.Name]; !ok { |
|
|
|
wikiMap[commit.Committer.Name] = 0 |
|
|
|
} else { |
|
|
|
wikiMap[commit.Committer.Name] += 1 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|