File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ async function batchCommitInfo(commits) {
214
214
}
215
215
216
216
function commitsInfoToPRs ( commits ) {
217
- const prs = [ ] ;
217
+ const prs = { } ;
218
218
for ( const commit of commits ) {
219
219
const associatedPRs = commit . associatedPullRequests . nodes . filter (
220
220
pr => pr . repository . nameWithOwner === 'graphql/graphql-js' ,
@@ -243,16 +243,17 @@ function commitsInfoToPRs(commits) {
243
243
`PR #${ pr . number } has conflicting labels: ` + labels . join ( '\n' ) ,
244
244
) ;
245
245
}
246
- prs . push ( {
246
+
247
+ prs [ pr . number ] = {
247
248
number : pr . number ,
248
249
title : pr . title ,
249
250
url : pr . url ,
250
251
author : pr . author ,
251
252
label : labels [ 0 ] ,
252
- } ) ;
253
+ } ;
253
254
}
254
255
255
- return prs ;
256
+ return Object . values ( prs ) ;
256
257
}
257
258
258
259
async function getCommitsInfo ( commits ) {
You can’t perform that action at this time.
0 commit comments