Commit f7fbbe3
Changed files (2)
src
collect
src/collect/collect.ts
@@ -62,12 +62,12 @@ export async function collect(
break
}
- console.log(
- `| commits ${nodes.length}/${totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`,
- )
for (const commit of nodes) {
repo.commits.push(commit)
}
+ console.log(
+ `| commits ${repo.commits.length}/${totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`,
+ )
}
} catch (err) {
console.error(
src/collect/pulls.ts
@@ -19,6 +19,12 @@ query PullsQuery($username: String!, $num: Int = 100, $cursor: String) {
login
}
name
+ languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
+ totalCount
+ nodes {
+ name
+ }
+ }
}
participants(first: 20) {
totalCount
@@ -91,6 +97,12 @@ export type PullsQuery = {
login: string
}
name: string
+ languages: {
+ totalCount: number
+ nodes: Array<{
+ name: string
+ }>
+ }
}
participants: {
totalCount: number