|
|
@@ -14,6 +14,7 @@ type ContributorWithUserId struct { |
|
|
|
UserId int64 |
|
|
|
IsAdmin bool |
|
|
|
RelAvatarLink string |
|
|
|
Email string |
|
|
|
} |
|
|
|
|
|
|
|
func GetRepoKPIStats(repo *Repository) (*git.RepoKPIStats, error) { |
|
|
@@ -148,6 +149,7 @@ func GetTop10Contributor(repoPath string) ([]ContributorWithUserId, error) { |
|
|
|
user.ID, |
|
|
|
user.IsAdmin, |
|
|
|
user.RelAvatarLink(), |
|
|
|
user.Email, |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
@@ -162,6 +164,7 @@ func GetTop10Contributor(repoPath string) ([]ContributorWithUserId, error) { |
|
|
|
-1, |
|
|
|
false, |
|
|
|
"", |
|
|
|
contributor.Email, |
|
|
|
} |
|
|
|
} else { |
|
|
|
value.CommitCnt += contributor.CommitCnt |
|
|
|