|
|
|
@@ -11,7 +11,8 @@ import ( |
|
|
|
|
|
|
|
type ContributorWithUserId struct { |
|
|
|
git.Contributor |
|
|
|
UserId int64 |
|
|
|
UserId int64 |
|
|
|
IsAdmin bool |
|
|
|
} |
|
|
|
|
|
|
|
func GetRepoKPIStats(repo *Repository) (*git.RepoKPIStats, error) { |
|
|
|
@@ -144,6 +145,7 @@ func GetTop10Contributor(repoPath string) ([]ContributorWithUserId, error) { |
|
|
|
contributorDistinctDict[user.Email] = ContributorWithUserId{ |
|
|
|
contributor, |
|
|
|
user.ID, |
|
|
|
user.IsAdmin, |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
@@ -156,6 +158,7 @@ func GetTop10Contributor(repoPath string) ([]ContributorWithUserId, error) { |
|
|
|
contributorDistinctDict[contributor.Email] = ContributorWithUserId{ |
|
|
|
contributor, |
|
|
|
-1, |
|
|
|
false, |
|
|
|
} |
|
|
|
} else { |
|
|
|
value.CommitCnt += contributor.CommitCnt |
|
|
|
|