You've already forked wakapi-readme-stats
Merge remote-tracking branch 'origin/feat/verbose_tests_and_dry_running' into feat/verbose_tests_and_dry_running
This commit is contained in:
@@ -69,6 +69,7 @@ GITHUB_API_QUERIES = {
|
|||||||
owner {
|
owner {
|
||||||
login
|
login
|
||||||
}
|
}
|
||||||
|
isPrivate
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
endCursor
|
endCursor
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ async def calculate_yearly_commit_data(repositories: Dict) -> Dict:
|
|||||||
total = len(repositories["data"]["user"]["repositories"]["nodes"])
|
total = len(repositories["data"]["user"]["repositories"]["nodes"])
|
||||||
for ind, repo in enumerate(repositories["data"]["user"]["repositories"]["nodes"]):
|
for ind, repo in enumerate(repositories["data"]["user"]["repositories"]["nodes"]):
|
||||||
if repo["name"] not in EM.IGNORED_REPOS:
|
if repo["name"] not in EM.IGNORED_REPOS:
|
||||||
DBM.i(f"\t{ind + 1}/{total} Retrieving repo: {repo['owner']['login']}/{repo['name']}")
|
repo_name = "private" if repo["isPrivate"] else repo['owner']['login'] + "/" + repo['name']
|
||||||
|
DBM.i(f"\t{ind + 1}/{total} Retrieving repo: {repo_name}")
|
||||||
await update_yearly_data_with_commit_stats(repo, yearly_data)
|
await update_yearly_data_with_commit_stats(repo, yearly_data)
|
||||||
DBM.g("Yearly commit data calculated!")
|
DBM.g("Yearly commit data calculated!")
|
||||||
return yearly_data
|
return yearly_data
|
||||||
|
|||||||
Reference in New Issue
Block a user