Open wwzeng1 opened 5 months ago
Here are the code search results. I'm now analyzing these search results to write the PR.
sweepai/handlers/create_pr.py
Update the
---
+++
@@ -1,6 +1,6 @@
for repo_entity in repositories:
repo = g.get_repo(repo_entity.full_name)
-
+
try:
# instead of using total count, use the date of the latest commit
commits = repo.get_commits(
@@ -13,9 +13,11 @@
continue
else:
raise
-
+
# get latest commit date
commit_date = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30)
for commit in commits:
if commit.commit.author.date > commit_date:
- commit_date = commit.commit.author.date
+ commit_date = commit.commit.author.date
+
+ repo_activity[repo] = commit_date
Your changes have been successfully made to the branch sweep/handle_this_sentry_error_409_message_git
. I have validated these changes using a syntax checker and a linter.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Details
Here is where it occurs: