From 5c20fffee995aa0dbdd4ba1875e88b3966439e54 Mon Sep 17 00:00:00 2001 From: "Hussam.lawen" Date: Mon, 11 Mar 2024 09:59:16 +0200 Subject: [PATCH] fix when no previous review where found, reivew -i should run as regular review --- pr_agent/git_providers/github_provider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index facf156a..2f928f82 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -70,7 +70,8 @@ class GithubProvider(GitProvider): continue self.unreviewed_files_set.update({file.filename: file for file in commit.files}) 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): last_review_time = self.previous_review.created_at