11import type { Container } from '../../../../../container' ;
22import type { GitCache } from '../../../../../git/cache' ;
33import type { GitContributorsSubProvider } from '../../../../../git/gitProvider' ;
4- import type { GitContributorStats } from '../../../../../git/models/contributor' ;
4+ import type { GitContributorsStats } from '../../../../../git/models/contributor' ;
55import { GitContributor } from '../../../../../git/models/contributor' ;
66import { isUserMatch } from '../../../../../git/utils/user.utils' ;
77import { log } from '../../../../../system/decorators/log' ;
@@ -38,12 +38,12 @@ export class ContributorsGitSubProvider implements GitContributorsSubProvider {
3838 contributors . push (
3939 new GitContributor (
4040 repoPath ,
41- c . name ,
41+ c . name ?? c . login ?? '' ,
4242 c . email ,
43+ isUserMatch ( currentUser , c . name , c . email , c . login ) ,
4344 c . contributions ,
4445 undefined ,
4546 undefined ,
46- isUserMatch ( currentUser , c . name , c . email , c . login ) ,
4747 undefined ,
4848 c . login ,
4949 c . avatar_url ,
@@ -64,7 +64,7 @@ export class ContributorsGitSubProvider implements GitContributorsSubProvider {
6464 async getContributorsStats (
6565 repoPath : string ,
6666 _options ?: { merges ?: boolean ; since ?: string } ,
67- ) : Promise < GitContributorStats | undefined > {
67+ ) : Promise < GitContributorsStats | undefined > {
6868 if ( repoPath == null ) return undefined ;
6969
7070 const scope = getLogScope ( ) ;
@@ -76,7 +76,7 @@ export class ContributorsGitSubProvider implements GitContributorsSubProvider {
7676
7777 const contributions = results . map ( c => c . contributions ) . sort ( ( a , b ) => b - a ) ;
7878
79- const result : GitContributorStats = {
79+ const result : GitContributorsStats = {
8080 count : contributions . length ,
8181 contributions : contributions ,
8282 } ;
0 commit comments