This repository was archived by the owner on Apr 7, 2025. It is now read-only.
File tree 2 files changed +18
-14
lines changed
.github/actions/sync-data
2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -23058,13 +23058,15 @@ function formatStats(project, stats) {
23058
23058
);
23059
23059
23060
23060
const cachedContributors = Array.isArray(contributorStats)
23061
- ? contributorStats.map(i => ({
23062
- id: i.author.id,
23063
- login: i.author.login,
23064
- avatarUrl: i.author.avatar_url,
23065
- htmlUrl: i.author.html_url,
23066
- contributions: i.total
23067
- }))
23061
+ ? contributorStats.map(i => {
23062
+ return {
23063
+ id: _.get(i, 'author.id'),
23064
+ login: _.get(i, 'author.login'),
23065
+ avatarUrl: _.get(i, 'author.avatar_url'),
23066
+ htmlUrl: _.get(i, 'author.html_url'),
23067
+ contributions: _.get(i, 'total')
23068
+ };
23069
+ })
23068
23070
: [];
23069
23071
23070
23072
const latestReleaseName = _.get(project, 'latestTag.nodes[0].name', false);
Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ function formatStats(project, stats) {
58
58
) ;
59
59
60
60
const cachedContributors = Array . isArray ( contributorStats )
61
- ? contributorStats . map ( i => ( {
62
- id : i . author . id ,
63
- login : i . author . login ,
64
- avatarUrl : i . author . avatar_url ,
65
- htmlUrl : i . author . html_url ,
66
- contributions : i . total
67
- } ) )
61
+ ? contributorStats . map ( i => {
62
+ return {
63
+ id : _ . get ( i , 'author.id' ) ,
64
+ login : _ . get ( i , 'author.login' ) ,
65
+ avatarUrl : _ . get ( i , 'author.avatar_url' ) ,
66
+ htmlUrl : _ . get ( i , 'author.html_url' ) ,
67
+ contributions : _ . get ( i , 'total' )
68
+ } ;
69
+ } )
68
70
: [ ] ;
69
71
70
72
const latestReleaseName = _ . get ( project , 'latestTag.nodes[0].name' , false ) ;
You can’t perform that action at this time.
0 commit comments