Tools: Weekly report script ignore commits to .profile repo
Weekly report commits should not be in the list of commits
This commit is contained in:
@@ -107,7 +107,8 @@ def report_personal_weekly_get(username, start, verbose=True):
|
|||||||
fullname = activity["repo"]["full_name"] + "/pulls/" + activity["content"].split('|')[0]
|
fullname = activity["repo"]["full_name"] + "/pulls/" + activity["content"].split('|')[0]
|
||||||
pulls_created.add(fullname)
|
pulls_created.add(fullname)
|
||||||
elif op_type == "commit_repo":
|
elif op_type == "commit_repo":
|
||||||
if activity["ref_name"] == "refs/heads/main" and activity["content"]:
|
if activity["ref_name"] == "refs/heads/main" and activity["content"] \
|
||||||
|
and activity["repo"]["name"] != ".profile":
|
||||||
content_json = json.loads(activity["content"])
|
content_json = json.loads(activity["content"])
|
||||||
repo_fullname = activity["repo"]["full_name"]
|
repo_fullname = activity["repo"]["full_name"]
|
||||||
for commits in content_json["Commits"]:
|
for commits in content_json["Commits"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user