Skip to content

Commit

Permalink
fix: added private label to user's private repository while logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anmol098 committed Feb 24, 2023
1 parent 5c3b1ed commit c8ef0e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sources/manager_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
owner {
login
}
isPrivate
}
pageInfo {
endCursor
Expand Down
3 changes: 2 additions & 1 deletion sources/yearly_commit_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8ef0e4

Please sign in to comment.