You've already forked wakapi-readme-stats
fix: added private label to user's private repository while logging
This commit is contained in:
@@ -69,6 +69,7 @@ GITHUB_API_QUERIES = {
|
||||
owner {
|
||||
login
|
||||
}
|
||||
isPrivate
|
||||
}
|
||||
pageInfo {
|
||||
endCursor
|
||||
|
||||
@@ -21,7 +21,8 @@ async def calculate_yearly_commit_data(repositories: Dict) -> Dict:
|
||||
total = len(repositories["data"]["user"]["repositories"]["nodes"])
|
||||
for ind, repo in enumerate(repositories["data"]["user"]["repositories"]["nodes"]):
|
||||
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)
|
||||
DBM.g("Yearly commit data calculated!")
|
||||
return yearly_data
|
||||
|
||||
Reference in New Issue
Block a user