We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbeda72 commit 18ac3efCopy full SHA for 18ac3ef
1 file changed
src/index.ts
@@ -18,12 +18,8 @@ async function run(): Promise<void> {
18
}
19
})
20
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
-
26
let repos = new Map()
+ const data = await client.request(query)
27
data.viewer.pullRequests.nodes.forEach((node: any) => {
28
const repo = node.repository.nameWithOwner
29
if (repos.has(repo)) {
@@ -40,7 +36,7 @@ async function run(): Promise<void> {
40
36
if (diff !== 0) {
41
37
return diff
42
38
43
- return b[1].starCount - a[1].starCount;
39
+ return b[1].starCount - a[1].starCount
44
}))
45
46
// Create Markdown table
0 commit comments