File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,8 @@ async function run(): Promise<void> {
1818 }
1919 } )
2020
21- const data = await client . request ( query )
22- // await fs.writeFile('data/merged-pull-requests.json', JSON.stringify(data))
23- // const result = await fs.readFile('./data/merged-pull-requests.json', { encoding: 'utf8' })
24- // const data = JSON.parse(result)
25-
2621 let repos = new Map ( )
22+ const data = await client . request ( query )
2723 data . viewer . pullRequests . nodes . forEach ( ( node : any ) => {
2824 const repo = node . repository . nameWithOwner
2925 if ( repos . has ( repo ) ) {
@@ -40,7 +36,7 @@ async function run(): Promise<void> {
4036 if ( diff !== 0 ) {
4137 return diff
4238 }
43- return b [ 1 ] . starCount - a [ 1 ] . starCount ;
39+ return b [ 1 ] . starCount - a [ 1 ] . starCount
4440 } ) )
4541
4642 // Create Markdown table
You can’t perform that action at this time.
0 commit comments