mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
fix when no previous review where found, reivew -i should run as regular review
This commit is contained in:
parent
84dadb0469
commit
5c20fffee9
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue