chore: code formatting

This commit is contained in:
github-actions[bot]
2023-03-13 04:39:48 +00:00
parent 522b7e74b1
commit 78709320de
16 changed files with 47 additions and 32 deletions

View File

@@ -25,7 +25,8 @@ export default async function({login, q, imports, rest, graphql, data, account,
.filter(({node}) => imports.filters.github(filter, {name: node.nameWithOwner, user: node.owner.login, stars: node.stargazers.totalCount, watchers: node.watchers.totalCount, forks: node.forks.totalCount}))
.map(({node}) => contributions.push({handle: node.nameWithOwner, stars: node.stargazers.totalCount, issues: node.issues.totalCount, pulls: node.pullRequests.totalCount, organization: node.isInOrganization, avatarUrl: node.owner.avatarUrl}))
pushed = edges.length
} while ((pushed) && (cursor))
}
while ((pushed) && (cursor))
}
//Set contributions
@@ -47,7 +48,8 @@ export default async function({login, q, imports, rest, graphql, data, account,
cursor = edges?.[edges?.length - 1]?.cursor
edges.map(({node: {repository: {nameWithOwner: repository}}}) => issues[repository] = (issues[repositories] ?? 0) + 1)
pushed = edges.length
} while ((pushed) && (cursor))
}
while ((pushed) && (cursor))
}
//Fetch pull requests
@@ -61,7 +63,8 @@ export default async function({login, q, imports, rest, graphql, data, account,
cursor = edges?.[edges?.length - 1]?.cursor
edges.map(({node: {repository: {nameWithOwner: repository}}}) => pulls[repository] = (pulls[repositories] ?? 0) + 1)
pushed = edges.length
} while ((pushed) && (cursor))
}
while ((pushed) && (cursor))
}
//Fetch commits