@@ -12,7 +12,6 @@ const getUserContributions = async (username) => {
12
12
const { data } = await githubService . fetchPRsByUser ( username ) ;
13
13
const allUserTasks = await tasks . fetchUserTasks ( username ) ;
14
14
const noteworthy = [ ] ;
15
- const collapsed = [ ] ;
16
15
const all = [ ] ;
17
16
18
17
if ( data . total_count ) {
@@ -27,11 +26,9 @@ const getUserContributions = async (username) => {
27
26
28
27
for ( const task of allUserTasks ) {
29
28
const noteworthyObject = { } ;
30
- const collapsedTaskObject = { } ;
31
29
const participantsDetails = [ ] ;
32
30
33
31
noteworthyObject . task = extractTaskdetails ( task ) ;
34
- collapsedTaskObject . task = extractTaskdetails ( task ) ;
35
32
36
33
if ( Array . isArray ( task . participants ) ) {
37
34
for ( const userId of task . participants ) {
@@ -48,7 +45,6 @@ const getUserContributions = async (username) => {
48
45
}
49
46
50
47
noteworthyObject . task . participants = participantsDetails ;
51
- collapsedTaskObject . task . participants = participantsDetails ;
52
48
const prList = [ ] ;
53
49
54
50
task . links ?. forEach ( ( link ) => {
@@ -66,10 +62,6 @@ const getUserContributions = async (username) => {
66
62
} else {
67
63
all . push ( noteworthyObject ) ;
68
64
}
69
-
70
- collapsedTaskObject . prList = prList ;
71
-
72
- task . isCollapsed ? collapsed . push ( collapsedTaskObject ) : all . push ( collapsedTaskObject ) ;
73
65
}
74
66
75
67
for ( const prDetails of prMaps . values ( ) ) {
@@ -81,7 +73,6 @@ const getUserContributions = async (username) => {
81
73
}
82
74
}
83
75
contributions . noteworthy = noteworthy ;
84
- contributions . collapsed = collapsed ;
85
76
contributions . all = all ;
86
77
return contributions ;
87
78
} ;
0 commit comments