Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hussam789 committed Mar 10, 2024
1 parent 003c490 commit 5453507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pr_agent/tools/pr_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ async def run(self) -> None:

if self.incremental.is_incremental and hasattr(self.git_provider, "file_set") and not self.git_provider.file_set:
get_logger().info(f"Incremental review is enabled for {self.pr_url} but there are no new files")
previous_review_url = ""
if hasattr(self.git_provider, "previous_review"):
previous_review_url = self.git_provider.previous_review.html_url
if get_settings().config.publish_output:
self.git_provider.publish_comment(f"Incremental Review Skipped\nNo files were changed since the [previous PR Review]({previous_review_url})", is_temporary=True)
self.git_provider.publish_comment(f"Incremental Review Skipped\n"
f"No files were changed since the [previous PR Review]({previous_review_url})", is_temporary=True)
return None

if get_settings().config.publish_output:
Expand Down

0 comments on commit 5453507

Please sign in to comment.