From abb9fc9b2ff3f756fbf4abb4304d0cd9d4aedbfc Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sat, 13 Jan 2024 20:08:28 -0500 Subject: [PATCH] Tools: Weekly report script ignore commits to .profile repo Weekly report commits should not be in the list of commits --- tools/triage/weekly_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/triage/weekly_report.py b/tools/triage/weekly_report.py index 59f44b3a598..4ded5f99254 100644 --- a/tools/triage/weekly_report.py +++ b/tools/triage/weekly_report.py @@ -107,7 +107,8 @@ def report_personal_weekly_get(username, start, verbose=True): fullname = activity["repo"]["full_name"] + "/pulls/" + activity["content"].split('|')[0] pulls_created.add(fullname) 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"]) repo_fullname = activity["repo"]["full_name"] for commits in content_json["Commits"]: