mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
fix when no previous review where found, reivew -i should run as regular review
This commit is contained in:
@ -70,7 +70,8 @@ class GithubProvider(GitProvider):
|
|||||||
continue
|
continue
|
||||||
self.unreviewed_files_set.update({file.filename: file for file in commit.files})
|
self.unreviewed_files_set.update({file.filename: file for file in commit.files})
|
||||||
else:
|
else:
|
||||||
raise ValueError("No previous review found")
|
get_logger().info("No previous review found, will review the entire PR")
|
||||||
|
self.incremental.is_incremental = False
|
||||||
|
|
||||||
def get_commit_range(self):
|
def get_commit_range(self):
|
||||||
last_review_time = self.previous_review.created_at
|
last_review_time = self.previous_review.created_at
|
||||||
|
Reference in New Issue
Block a user