mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
feat: Add exception handling for missing previous review in github_provider.py
This commit is contained in:
parent
96b91c9daa
commit
c22084c7ac
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ class GithubProvider(GitProvider):
|
|||
get_logger().info(f"Skipping merge commit {commit.commit.message}")
|
||||
continue
|
||||
self.file_set.update({file.filename: file for file in commit.files})
|
||||
else:
|
||||
raise ValueError("No previous review found")
|
||||
|
||||
def get_commit_range(self):
|
||||
last_review_time = self.previous_review.created_at
|
||||
|
|
|
|||
Loading…
Reference in a new issue