Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +6 -1
functions.py
CHANGED
@@ -127,7 +127,12 @@ def get_contributor_commits(repo_name, contributor, period,branches, updated_tok
|
|
127 |
except requests.exceptions.RequestException as e:
|
128 |
print(f"Failed to fetch commits: {e}")
|
129 |
print("commits")
|
|
|
|
|
|
|
|
|
|
|
130 |
print(commits)
|
131 |
-
summarized_commits = [extract_commit_summary(
|
132 |
return summarized_commits
|
133 |
|
|
|
127 |
except requests.exceptions.RequestException as e:
|
128 |
print(f"Failed to fetch commits: {e}")
|
129 |
print("commits")
|
130 |
+
all_commits = []
|
131 |
+
for commit in commits:
|
132 |
+
commit_details = get_commit_files_and_stats(commit['url'], updated_token)
|
133 |
+
commit['commit_files_stats'] = commit_details
|
134 |
+
all_commits.append(commit)
|
135 |
print(commits)
|
136 |
+
summarized_commits = [extract_commit_summary(all_commits) for commit in commits]
|
137 |
return summarized_commits
|
138 |
|